PDA

View Full Version : New Window Size...


nglovrmike
2-15-02, 01:25 PM
I figured out how to make a new window open when a link is clicked, but is there a way to adjust the size of a new window? I want the links to provide some supplemental information that shouldn't clutter the main window, but I don't want a full size window to open....just one big enough for the info.
Thanks!
Mike

muijefr
2-15-02, 02:32 PM
Try this for a sizeable image window:

<a onclick=window.open('Images/index.html','','width=nnn,height=nnn,scrollbars=ye s,resizable=yes,location=no,menubar=no,toolbar=no, top=0,left=0')
href="javascript:void(0)">TEXT of IMG Tag</a>

Try this for a sizeable html window:

<a href=javascript:void(0);
onclick=window.open('your.html','','width=nnn,heig ht=nnn,scrollbars=yes,resizable=yes,top=0,left=0') >TEXT or IMG TAG</a>

Putting the window.open and related parameters on one line, the same line, will cut down on any problems (the javasacript:void(0) helps NetScape get along with the window.open).