Created
May 1, 2014 13:03
-
-
Save mroosen/2c9a16c0d929ae283a0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script type='text/javascript'> | |
function jsOnload(){ | |
setInterval(function(){ | |
document.getElementById("divTest").innerHTML = (new Date) + Math.random() | |
}, 10) | |
window.onbeforeunload = function(){ | |
return true; | |
} | |
} | |
</script> | |
</head> | |
<body onload='jsOnload()'> | |
<div id='divTest'>...</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment