title: Javascript Countdown Timer
body: <p>I need a count down timer that can display second:miliseconds format, I found one that I figured I could modify it to show this like 4:92 but it doesn't want to work for me for some reason. It works fine on the site, but I try and put it into my page, the console tells me:</p>
  
  <p><code>Uncaught ReferenceError: display is not defined</code>.</p>
  
  <p>What did I do wrong?</p>
  
  <pre><code>    var milisec=0 
      var seconds=30 
      document.getElementById("timer").innerHTML='30' 
      function display(){ 
          if (milisec&lt;=0){ 
              milisec=9 
              seconds-=1 
          } 
          if (seconds&lt;=-1){ 
              milisec=0 
              seconds+=1 
          } 
          else 
              milisec-=1 
              document.getElementById("timer").innerHTML=seconds+"."+milisec 
              setTimeout("display()",100) 
      } 
  display() 
  </code></pre>
  
  <p>(<a href="http://www.java-scripts.net/javascripts/Countdown-Timer.phtml" rel="noreferrer">original source</a>)</p>