View Full Version : load multiple windows with 1 click

09-21-2005, 04:59 AM
I am looking to load multiple windows with a single click.

Something like popups, I suppose..

The idea is I work as a tech support guy for an ISP and I am trying to save some time by loading all my tools with one link.

Any guidance would be much appreciated..!
Thank you!

09-22-2005, 03:16 AM
Sure, use window.open(), example:

<a href="leaves.html" target="_blank" onclick="window.open('date.htm');window.open('blank.htm');window.open('bubble_leaves.htm');return true;">Link</a>The window.open() method accepts parameters so you can even specify height and width for each window as well as top and left coordinates for its upper left corner on the screen. Once you do that however, you also have to specify any 'chrome' and properties (like scrollbars, address bar, toolbar, etc.) that you want the window to have, ex:

window.open('some.htm', '', 'width=500, height=450, top=20, left=20, scrollbars, location, toolbar, status, resizable')Google 'window.open() method javascript' unquoted for all the details. The advantage in this is that you can plan the initial size and position of your tools on the desktop.