title: Javascript, countdown timer and display text
body: <p>I am making a countdown timer with JavaScript.</p>
  
  <p>Here is my script.</p>
  
  <pre><code>var seconds_left = 10;
  var interval = setInterval(function() {
      document.getElementById('timer_div').innerHTML = --seconds_left;
  
      if (seconds_left &lt;= 0)
      {
          //When it gets to 0 second, I want to show 'You are Ready!' text message.
  
      }
  }, 1000);
  </code></pre>
  
  <p>It starts to count from 10 seconds.</p>
  
  <p>I want to eliminate seconds when it gets 0 second and show a 'You are Ready!' message.</p>
  
  <p>Can anyone help?</p>