title: Window.location.href not working in Google Chrome
body: <p>I'm trying to pass an id for an item to be deleted through the URL after OK is clicked in a confirmation box, however nothing happens. This does works in IE but I'd like it to work with Chrome as well.</p>
  
  <pre><code>&lt;script&gt;
  function dltCnfrm(id)
  {
      var r=confirm("Delete this product?")
      if (r)
      {
          window.location.href = "http://localhost/e-com/index.php/product/delete_item/" + id;
      }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>code inside html</p>
  
  <pre><code>foreach ($items as $res) {
  $id = $res['id'];
  .
  .
  &lt;td&gt;&lt;?php echo "&lt;a href='' onclick='dltCnfrm($id)'&gt;Delete&lt;/a&gt;"; ?&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I have also tried several other methods including</p>
  
  <pre><code>location.assign();
  </code></pre>
  
  <p>adding return false; underneath the if statement </p>
  
  <p>could someone try this using a Chrome browser?
  Chrome Version 24.0.1312.57 m</p>