I'm trying to use the onload event to load a series of urls.
What I find is that the onload function is only called one time
no matter how large the array.
Here is the onload function.
var next_win = 0;
var win = window.open("", "", "");
function nextWin() {
if (next_win < urls.length) {
win.onload = nextWin;
win.location.hr ef=urls[next_win++];
}
}
Is this correct behavior?
--
-Mike
What I find is that the onload function is only called one time
no matter how large the array.
Here is the onload function.
var next_win = 0;
var win = window.open("", "", "");
function nextWin() {
if (next_win < urls.length) {
win.onload = nextWin;
win.location.hr ef=urls[next_win++];
}
}
Is this correct behavior?
--
-Mike
Comment