Faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 12 people (58%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

I have a great window.open script but can't figure out how do I open more than one window per page?

Aug 9th, 2001 02:03
Jean-Bernard Valentaten, Kathy Brown,


You have to assing the window-objects to vars, e.g:
var myWindows = new Array();
for(var i=0; i <= 10; i++)
{
  myWindows[i] = window.open('someUrl', 'Window' + 
i, 'theFeaturesYouNeed');
}
That will do the trick.
HTH