title: safari/chrome onsubmit="location.reload(true)" not working
body: <p>A form on my website is not functioning correctly in Safari/Chrome.  When a user submits the form, it opens up a new tab, but I want the original page (page with the form on it) to reload.    It works in IE, Opera, and Firefox.</p>
  
  <p>The Code:</p>
  
  <pre><code>&lt;form action="/search.php" method="post" onsubmit="location.reload(true)" target="_blank" name="myform"&gt;
  </code></pre>
  
  <p>I tried other javascript functions like:</p>
  
  <ul>
  <li>window.location.reload();</li>
  <li>document.location.reload();</li>
  <li>window.location.replace('http://www.websiteurl.com');</li>
  <li>window.location.href='http://www.websiteurl.com';</li>
  <li>And other variations of these.</li>
  </ul>
  
  <p>I thought maybe it was the onsubmit="" not working, but when I tried onsubmit="alert('test')" that worked fine in both Safari/Chrome.</p>
  
  <p>Also, on the search.php page that the form posts to, if a user goes directly to the page using the url, and not submitting the form, I have it set that the body tag will load as: </p>
  
  <pre><code>&lt;body onload="window.location.replace("http://www.websiteurl.com")&gt;
  </code></pre>
  
  <p>which works on all browsers includeing Safari/Chrome.</p>
  
  <p>What is going on here?!?!</p>
  
  <p>Thanks!</p>