title: Show Button after javascript timer has expired
body: <p>How do I show a button after my javascript timer has expired? I am using Visual Studio 2010 and doing it based on a ASP project. </p>
  
  <p>My current code for the timer is below: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    function countDown(sec, elem) {
    var element = document.getElementById(elem);
    element.innerHTML = "Time left: " + sec + " seconds";
     if (sec &lt; 1) {
      clearTimeout(timer); //clear timeout
      element.innerHTML = 'Time is up!';
      document.getElementById("&lt;%=btnPresentAnswer.ClientID %&gt;").Visible = true;
                  }
      sec--;
      var timer = setTimeout('countDown(' + sec + ', "' + elem + '")', 1000);
  
  
                  }
  &lt;/script&gt;
  &lt;div id="status"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
      countDown(5, "status");
  &lt;/script&gt;
  </code></pre>