Pop Up Window Sizes

liunx

Guest
Does anyone know how to change the size of a pop up window? What I want to do is make a thumbnail that shows the actual picture in a pop up window when clicked, but I want to resize that window to about the size of the picture.<!--content--><html><br />
<head><br />
<script type="text/javascript"><br />
<!--<br />
function openMe(){window.open("thispage.htm", "windowName", "height=350, width=350")}<br />
// --><br />
</script><br />
</head><br />
<body><br />
<a href=http://www.htmlforums.com/archive/index.php/"javaScript: openMe()">click</a><br />
</body><br />
</html><!--content-->And, if you want to just use this function for all your pictures, you could, instead of making one function for every picture you want to use. You have to send the page name as a variable into the function. So then, it would look like this:<br />
<br />
<html> <br />
<head> <br />
<script type="text/javascript"> <br />
<!-- <br />
function openMe(link){window.open(link, "windowName", "height=350, width=350")} <br />
// --> <br />
</script> <br />
</head> <br />
<body> <br />
<a href=http://www.htmlforums.com/archive/index.php/"javaScript: openMe("thispage.html")">click</a> <br />
</body> <br />
</html><br />
<br />
Just thought it might save you a little time. Good luck<!--content-->
 
Back
Top