I have a requirement where I have to open a URL in several windows with window.open
in for loop.
But the next window has to open only after previous one is loaded.
I have this code:
for(i=0; i<5; i++){
window.open("http://myurl.com");
}
Which opens 5 windows with 5 URLs. But not sure how to delay opening of next window until the previous one is completely loaded.