Forum Moderators: open
I'm using Frontpage for my web site and am able to click on a picture and have it open into a new window. My question is how can I size the new window that my image is displayed in?
Thanks.
Todd
<A HREF="image.jpg" onClick="window.open('image.jpg','winname','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=200'); return false;">
You'll have to experiment (in a few different browsers) to find the window height and width you need to specify in order to make the image display perfectly.
There are also ways you can use the actual h/w of the image so that it doesn't have to be hardcoded, but that gets a lot more complex and it's probably more than you need.
[edited by: tedster at 6:38 pm (utc) on Feb. 3, 2004]
[edit reason] fix side scroll [/edit]