July 29, 2001

Opening new windows, continued...

So, there's the traditional method, but let's say you want more control over that new "child" window that you're opening. Knowing the attributes that you can control from the tutorial below, you can control the height, width, turn the toolbar on and off, etc.

And, if it is a one time deal, you can get by with something very simple. Just use the window.open command in your anchor tag:
a href="javascript:void window.open('/images/beach.jpg', 'Sample1', 'WIDTH=340,HEIGHT=260');"

Click here to try it