set timeout for parent window to fire after child window. b=379484 r=bzbarsky

This commit is contained in:
rhelmer@mozilla.com 2007-05-02 22:47:56 -07:00
parent 06bb2d0341
commit eb08378d74

View File

@ -25,16 +25,17 @@ window.onload = function () {
};
function loadURL () {
w.location.href = list[idx++];
if (list[idx]) {
if (idx < list.length) {
window.setTimeout(loadURL, interval);
} else {
window.setTimeout("w.close();", interval);
window.setTimeout("window.close();", interval);
window.setTimeout("w.close();", interval);
window.setTimeout("window.close();", interval*2);
}
}
var i;
for(i=0;i<6;i++) {
document.write(list[i]);
document.write("<br>");
}
var i;
for(i=0; i < list.length;i++) {
document.write(list[i]);
document.write("<br>");
}
</script>