
Dave
Staff
/ Moderator

Aug 14, 2002, 3:28 PM
Post #4 of 21
(13303 views)
Shortcut
|
|
Re: [noza] tell a friend mod !
[In reply to]
|
Can't Post
|
|
I don't know of any cross-browser way that you can specify the window size with just HTML but this little bit of javascript will do it for you. Just add this to the top of your page: <script language="Javascript"><!-- function popup(url,width,height,winname) { var url, width, height; if (width == null) { width = 200; } // default width if (height == null) { height = 400; } // default height window.open(url, winname, 'toolbar=no,location=no,directories=no,status=yes,menubar=no,' +'scrollbars=yes,resizable=yes,width='+width+',height='+height); } //--></script> And where you want to link to the popup, you can do it like this: <a href="javascript:popup('http://www.interactivetools.com',600,400)">popup window</a> You can change the settings in the function (toolbar, scrollbars, etc) to change how the window will appear. Hope that helps! : ) Dave Edis - Senior Developer interactivetools.com
|