Creating a popup window

I need the html code for when I click on a link it opens the link in a small popup window. One that does not have any buttons or menus. Here's the site that I am working with.

http://www.surmodics.com/calevent/cal2nd99.html

On Sept 1st - 4th has a link to a test page. The only reason that I stated this it's working within a table. Shouldn't make a difference but who knows.

I don't think it is that difficult, but I can't find it.


Can someone help.
Dan SheridanSenior System Eng / vITMAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

andrivCommented:
And easy way is to make your href tag as this:

<A HREF="#" onClick=window.open('page_to_load.html','window_name','height=100,width=50');">Click here</a>

by leaving off the button names it will not appear on new window
or you can set them to 0 like this:

<A HREF="#" onClick=window.open('page_to_load.html','window_name','height=100,width=50,menubar=0,status=0');">Click here</a>

Other attributes you can have on new window:
menubar
status
scrollbars
resizable
width
height
toolbar
location
directories
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dan SheridanSenior System Eng / vITMAuthor Commented:
Edited text of question.
0
Dan SheridanSenior System Eng / vITMAuthor Commented:
like this

<a href="test.html" onClick="window.open('test.html',
'Test page','height=100,width=50,menubar=0,status=0');">

I have also tried this

<a href="#" onClick="window.open('test.html',
'Test page','height=100,width=50,menubar=0,status=0');">

Now these are ' and not " within window.open(), right?

This does not work.  The top one opens in same window.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

andrivCommented:
You can use either ' or "  except if you are using two sets then you have to use the other.  We opened a double quote before window.open() so we have to use single quot for the others.

I ran a test and it opened a second window, your mistake is you cannot have a space on the window name.  Change 'Test page' to 'Test_page'
0
andrivCommented:
Just an added note: when ever I choose not to have one of the attributes as in 'menubar' on the new window I leave it off all together.  If you want it on the window just add it as one of the attributes.
0
Dan SheridanSenior System Eng / vITMAuthor Commented:
Thank you, That worked sweetly.
0
Dan SheridanSenior System Eng / vITMAuthor Commented:
Andriv, I have a problem. It works in Internet Explorer, but not Netscape.
0
andrivCommented:
It should work for both because I tested it on NS.  Tell me where is it that you are using it and I'll take a look at the code.
0
andrivCommented:
dsheridan,  I visited you site and found what is wrong with the link.  Unfortunately NS doesnt' allow you to use one <href> tag to make more then 1 cell a link.  You have to put a <href> tag inside each cell you want to make a link.

<TR>
  <TD><A HREF="#" onClick=window.open(ect....)
  </TD>
  <TD><A HREF="#" onClick=window.open(ect....)
  </TD>
</TR>

Hope this works.
0
Dan SheridanSenior System Eng / vITMAuthor Commented:
*&#%, that sucks
0
Dan SheridanSenior System Eng / vITMAuthor Commented:
So in other words, I can only have the text be linked and not the cell?

And sorry, it didn't work either.

look at sept 5th in NS, didn't work.

Any other ideas?

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.