title: window.location fails to work in IE (IE9)
body: <p><strong>What Am I trying to do:</strong> redirection to home page and to previous page with id.</p>
  
  <p><strong>Whats going wrong:</strong> fails to work in IE (9) works on Firefox.</p>
  
  <p><strong>What I have tried:</strong></p>
  
  <p>On click events:</p>
  
  <pre><code>&lt;input type="hidden" id="product_id" value="&lt;?php echo $_GET['product_id']; ?&gt;" /&gt;
          &lt;td&gt;&lt;input type="submit" value="Update" onClick="update(); return false;" /&gt;&lt;/td&gt;     
          &lt;td&gt;&lt;input type="submit" value="Go Back" onClick="redirect('go back'); return false;" /&gt;&lt;/td&gt;
          &lt;td&gt;&lt;input type="submit" value="Done" onClick="redirect('home'); return false;" /&gt;&lt;/td&gt;
  </code></pre>
  
  <p>redirect function:</p>
  
  <pre><code>function redirect(redirect){
  
  
      var id = $('#product_id').val();    
  
      if (redirect == "go back"){
          window.location.href = 'displayProduct.php?product_id='+id;
      }
      else if (redirect == "home"){
          window.location.href = 'index.php';
      }
  
  }
  </code></pre>
  
  <p>I also tried adding a <code>alert('1');</code> inside the redirect function which doesn't appear to be firing in IE.</p>
  
  <p>Am I missing something..? </p>