title: Redirect django url with javascript
body: <p>i have countdown timer with javascript, I want to redirect to another page after countdown is over.countdown works pefectly but it's not redirecting to the result page</p>
  
  <p>i tried this:</p>
  
  <p>app.js</p>
  
  <pre><code>var count = 15
  
  var counter = setInterval(timer , 1000)
  
  function timer(){
     count = count-1
     if (count &lt;= 0)
     {
         clearInterval(counter);
         return window.location.replace("{% url'app:result' %}")
     }
     document.getElementById("timer").innerHTML= count + " secs";
  
  }
  </code></pre>