Question:
In javascript, how would you make it so multiple popup windows open?
2009-05-15 18:39:48 UTC
Like how do you make a timed delay popup to open google, yahoo answers, ebay, youtube, http://comptune.com/calc.php rapidshare, and any other site all at once? Like would it be window.open("url1,url2,url3,") or window.open("url1","url2","url3") and so on? Am I on the right track? Thanks in advance!
Three answers:
2009-05-15 19:05:05 UTC
You need to review your window.open function

http://www.pageresource.com/jscript/jwinopen.htm



Unfortunately, your question seems a bit self-contradictory. Do you want a timed delay, or do you want them all at once? If you want them all at once, then take out the setTimeout thing, and just use a bunch of window.open commands. If you want a timed delay, you could make a delay function



function delay(ms)

{

var start = new Date().getTime();

while((new Date()).getTime() - start < ms);

}



so then you could do one window open, delay(1000), a second window open, delay(1000), etc.
2017-01-12 21:55:53 UTC
positioned the javascript code the place you decide on it to execute...a pop up will come while its observed as from the source of the website... of path you are able to be a intense-high quality guy or woman and not positioned js popups everywhere by using fact they're often stressful.
2009-05-15 18:45:52 UTC
No, you call the function that opens the window when the timer expires, with the next URL in the list (and reset the timer, of course).


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...