J
Jorge
Let's say that you've got a page like this:
<html>
<head>
<script>
window.onload= function () {
(function f1 () {
alert("f1()");
setTimeout(f1, 3333);
})();
document.write("another page");
};
</script>
</head>
<body>
</body>
</html>
Once the document.write happens, should f1() be killed or should it
stay alive-n-kickin' ?
I ask because both Opera and IE8 kill it, while Safari, Chrome and
FireFox do not.
What's the correct behaviour ?
You can test it @ jorgechamorro.com/cljs/083/index4.html
TIA,
<html>
<head>
<script>
window.onload= function () {
(function f1 () {
alert("f1()");
setTimeout(f1, 3333);
})();
document.write("another page");
};
</script>
</head>
<body>
</body>
</html>
Once the document.write happens, should f1() be killed or should it
stay alive-n-kickin' ?
I ask because both Opera and IE8 kill it, while Safari, Chrome and
FireFox do not.
What's the correct behaviour ?
You can test it @ jorgechamorro.com/cljs/083/index4.html
TIA,