Posted By

mikael12 on 10/24/10


Tagged

every-n-second


Versions (?)

Do stuff every n msec


 / Published in: JavaScript
 

It will be executed onload

  1. (function showTime() {
  2. var d = new Date();
  3. document.getElementById('time').innerHTML = d;
  4.  
  5. setTimeout(showTime, 1000);
  6. })();

Report this snippet  

You need to login to post a comment.