PDA

View Full Version : Opening window, and sizing dynamically.


dwessell
11-26-2006, 08:46 PM
Hey all,

I'm trying to open a window, and size it based on a image, of which I only know the size as the user clicks. Something like below.

myWindow = window.open('template.html','name','width=variable1','height=variable2');

However. I can't quite get the syntax. As above, it doesn't treat variable1 or 2 as a variable.. Any suggestions?

Thanks
David

coothead
11-27-2006, 12:37 AM
Hi there dwessell,

have a look ar this thread, it may suit your requirements...
http://www.htmlforums.com/showthread.php?t=83656