Created
August 31, 2008 03:26
-
-
Save snaka/8165 to your computer and use it in GitHub Desktop.
javascript tester page for private
This file contains hidden or 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
<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