title: Want to stop countdown and give out put as time up
body: <p>Hello i want when my countdown end it should give out as:</p>
  
  <pre><code>document.getElementById("remain").innerHTML = "Time up";
  </code></pre>
  
  <p>Live countdown here : <a href="http://ffsng.deewayz.in/counter/" rel="nofollow noreferrer">http://ffsng.deewayz.in/counter/</a></p>
  
  <p>As its about to end i want to give out put that "Time up"</p>
  
  <p>i tried some thing this way but dint work out.</p>
  
  <pre><code>function setCountDown() {
      seconds--;
      if (seconds &lt; 0) {
          minutes--;
          seconds = 59;
      }
      if (minutes &lt; 0) {
          hours--;
          minutes = 59;
      }
      if (hours &lt; 0) {
          days--;
          hours = 23;
      }
      document.getElementById("remain").innerHTML = days + " days, " + hours + " hours, " + minutes + " minutes, " + seconds + " seconds";
      if ((seconds = 0) &amp;&amp; (minutes = 0) &amp;&amp; (hours = 0) &amp;&amp; (days = 0))(
          document.getElementById("remain").innerHTML = "time up";
      ) else ( 
          setTimeout("setCountDown()", 1000);
      );  
  }
  </code></pre>
  
  <p>My full codes is here : <a href="https://stackoverflow.com/questions/12594438/countdown-timer-not-working-with-gmt-time">Countdown timer not working with gmt time</a></p>