HighDots Forums  

Re: popping up multile windows from javascript function

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: popping up multile windows from javascript function in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Honnen
 
Posts: n/a

Default Re: popping up multile windows from javascript function - 07-02-2003 , 06:46 AM








Tuhin wrote:
Quote:
Hi All

I have an array of strings. Each string is something like this:

myJsp?param1=..&param2=..&param3=...

I have to call a window.open for each of these strings. I am looping
through these strings and calling the window.open for each. But this
does not work. It won't pop up a second window unless the first one is
closed.

If I put an alert message before calling the window.open, and close
the previous window each time, it works. How do I pop up multiple
windows?

Use a different window name each time
var windowName = 'windowName';
for (var i = 0; i < 5; i++)
window.open(array[i], windowName + i);

--

Martin Honnen
http://JavaScript.FAQTs.com/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.