Click to See Complete Forum and Search --> : pop-up windows?


da_bomb
02-05-2003, 12:08 PM
just wondering how can i make a popup window - i think it has something to do with javascript but not sure.

this is what i have -

<a href="pic1.htm"><img src="../images/i-netplay%20members%2001.jpg" width="220" height="165" border="0"></a

how do i edit it to get a popup window.

btw is it something i do to the page with the link? or something i do to the page i am actual linking to

just to clarify, when i say popup window i mean a link that whn you click on it a new page opens AND there are not tool bars or anything.

the code to make a button on the page to auto close it would be greatly apprectiated too.

thnks
da_bomb

ecross
02-05-2003, 12:40 PM
You might find the following link useful.

http://htmlgoodies.com/beyond/openwin.html

da_bomb
02-05-2003, 12:47 PM
thnks m8

Charles
02-05-2003, 12:49 PM
The HTML Goodies tutorials are full of incorrect information and that one is no different from the rest. Try:

<a href="pic1.htm" onclick="window.open(this.href, 'child', 'height=300,width-200'); return false"><img src="../images/i-netplay%20members%2001.jpg" width="220" height="165" border="0"></a>

And see http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202731 for the details concerning the Window.open() method.