Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onbodyLoad (){
- var now = new Date();
- var hr = now.getHours();
- var min = now.getMinutes();
- var sec = now.getSeconds();
- document.getElementById('clockDisplay').innerHTML
- = "Time is " + hr + ":" + min + ":" + sec;
- setTimeout('onbodyLoad()', 500);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement