Skip to content

Instantly share code, notes, and snippets.

@snaka
Created August 31, 2008 03:26
Show Gist options
  • Save snaka/8165 to your computer and use it in GitHub Desktop.
Save snaka/8165 to your computer and use it in GitHub Desktop.
javascript tester page for private
<html>
<head><title>test Js</title></head>
<script type="text/javascript">
var dateTime = new Date();
window.addEventListener("load", function() {
print('started on ' + dateTime.toDateString());
print('hello test js');
print('This is test template');
}, false);
function print(msg) {
var div = document.createElement('div');
div.innerHTML = dateTime.toTimeString() + ' : ' + msg;
document.body.appendChild(div);
}
</script>
<body>
<h1>test Js</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment