title: how to add timer countdown action in asp.net mvc
body: <p>I want to add a temporary counter descending so if they end the count goes to another page has experimented with JavaScript, but that does not work</p>
  
  <pre><code>&lt;script&gt;
      setTimeout("doSomething()", 500);
  
      function doSomething() {
          @Url.Action("ControlPanelAdmin", "Account")
          setTimeout("doSomething()", 500);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>What is the correct way to do such a thing?</p>