mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
14 lines
318 B
HTML
14 lines
318 B
HTML
<div></div><script>
|
|
function foo(i) {
|
|
window.alert("timeout " + i);
|
|
if (i == 10)
|
|
window.alert("timeouts finished");
|
|
else
|
|
window.setTimeout(function() { foo(i + 1); }, 1000);
|
|
}
|
|
|
|
window.alert("beginning timeouts");
|
|
window.setTimeout(function() { foo(0); }, 1000);
|
|
window.alert("timeouts begun");
|
|
</script>
|