Click to See Complete Forum and Search --> : Q: Multiple Popup Windows??


Sabian
05-09-2003, 03:52 AM
I have the following script on my site:

function popupWindow() {
ElementWindow = window.open('http://nameofurl','FirstWin','width=425,height=500')
}

in the main body of the page i then have: <a href="javascript:popupWindow()">Enquiries</a></font></div></td>

This works greats and pops the required page up in a new window just the size i want it. The question is how can i create more than one popup linked off the one?

ie i want 4 more popup windows coming off that one page that go to different pages with different sizes!

Sorry bout this im very new to JavaScript, cheers!

Charles
05-09-2003, 05:21 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Window Example</title>

<div> <a href="http://www.w3.org/TR/xhtml1/" onclick="window.open(this.href, 'oneZero', 'height=200,width=200'); return false">XHTML 1.0</a> |

<a href="http://www.w3.org/TR/xhtml11/" onclick="window.open(this.href, 'oneOne', 'height=250,width=250'); return false">XHTML 1.1</a> |

<a href="http://www.w3.org/TR/xhtml2/" onclick="window.open(this.href, 'twoZero', 'height=300,width=300'); return false">XHTML 2.0</a></div>