mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
set timeout for parent window to fire after child window. b=379484 r=bzbarsky
This commit is contained in:
parent
06bb2d0341
commit
eb08378d74
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user