/ Published in: JavaScript
It will be executed onload
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(function showTime() { var d = new Date(); document.getElementById('time').innerHTML = d; setTimeout(showTime, 1000); })();