title: submit form in new window and reload current window with new url
body: <p>I am trying to submit a form in new window and after submit, I am reloading the current window with new url. Below is my code.</p>
  
  <pre><code>&lt;form action="http://www.example.com/submit/" method="get" name="myform" id="myform" target="_blank"&gt;
      &lt;div&gt;
          &lt;div&gt;Your Name:&lt;/div&gt;
          &lt;div&gt;
              &lt;input type="text" name="name" /&gt;
          &lt;/div&gt;
          &lt;div&gt;
              &lt;input type="image" src="http://www.example.com/submit_image.png" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $('#myform').submit(function(){
              window.location.href = 'http://www.google.com';
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>This is working fine in Firefox and IE, but not in Google Chrome. The issue in chrome is, it submits the form in new window but it does not reload the current window with new url.</p>
  
  <p>Can anyone suggest a solution for this? My idea is, to submit this form in new window and reload the current window with different url.</p>