title: location.assign not working in IE
body: <p>I wrote a small jquery code to redirect to google.com after 2 seconds on pressing a button. The code works fine in Firefox, google chrome but not in the Internet Explorer.</p>
  
  <p>I believe the location.assign function is not working since it is the one that is supposed to redirect to another url and all other functions like alert are working but not this one.</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
          $(document).ready(function(){
              $(".prize_select").click(function(){
                  var timer = setInterval(redirect,2000);
                  function redirect()
                  {
                      location.assign("http://www.google.com");
                      timer = clearTimeout(timer);
                  }
              });
          });
    &lt;/script&gt;
  </code></pre>
  
  <p>I would also say that I have already tried these function:</p>
  
  <p>location.assign<br/>
  window.location<br/>
  window.location.href<br/></p>
  
  <p>but none of them seems to work in Internet Explorer</p>