View Full Version : Pop up window

10-16-2003, 06:28 PM
Im new to scripting, i have created a web page with 4 different links. I found a page that generates code to make pop up windows, however i want each link to open a different size, i pasted the same script 4 times but all the windows open to the same size, how can i do this orr is there a tutorial on how to use multiple scripts without them affecting each other

10-16-2003, 07:29 PM
First, copy this in your <head> tag.

<script type="text/javascript">
function openWindow(url,h,w){

Then put this link anywhere you want in your document. You can add more links by pasting this link multiple times. 400 is the height and 300 is the width, change them to what size you want the popup to be.

<a href="http://" onclick="openWindow('http://','400','300');return false">Open window</a>