View Full Version : how do I make popup window?


orchid1
04-28-2003, 09:37 PM
I saw in the tutorials there's only a tutorial for the button one only. How we click on the button and a window pop up. What if I don't want the button but instead an image or some text?

epolady
04-28-2003, 09:41 PM
http://www.lissaexplains.com/java4.shtml#window keep reading past the 'button' tutorial part.

pink_fishies
04-28-2003, 11:03 PM
theres also a pop up generator at layoutland.net

amicus
05-02-2003, 12:52 AM
just use the script below and change the url of the page you want to pop up. if you want it to popup when the page loads leave off the link and call the function using an onload event. if you want to use it with an image, instead of putting text between the anchor tags just put an img tag (set the borders to 0.)

function NAME( pageName ) {
window.open (pageName,"popup","width=400, height=200, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0");
}

<a href="javascript:NAME( 'pageName.html' )">click</a>