function timer


SUBMITTED BY: Guest

DATE: Jan. 5, 2014, 2:57 a.m.

FORMAT: Text only

SIZE: 223 Bytes

HITS: 1199

  1. function timer()
  2. {
  3. count=count-1;
  4. if (count <= 0)
  5. {
  6. clearInterval(counter);
  7. return;
  8. }
  9. document.getElementById("timer").innerHTML=count + " secs"; // watch for spelling
  10. }

comments powered by Disqus