Skip to content

Instantly share code, notes, and snippets.

@mroosen
Created May 1, 2014 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mroosen/2c9a16c0d929ae283a0e to your computer and use it in GitHub Desktop.
Save mroosen/2c9a16c0d929ae283a0e to your computer and use it in GitHub Desktop.
<!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