mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
13 lines
318 B
HTML
13 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>
|