title: Submit Old Google Form then redirect to another page
body: <p>I am utilizing a Google Form on a webpage.  I copied the source code from the form directly onto my page so that I can modify some of the HTML instead of using an iframe.  Then instead of taking the user to the google docs response page I would like to redirect them to another page.</p>
  
  <p>The trouble that I am running into is with the page redirect.  I was able to get this working properly in Chrome and Firefox with this:</p>
  
  <pre><code>&lt;form target="GoogleResponse" action="https://docs.google.com/spreadsheet/
  formResponse?formkey=xxxxxxxxxxxxxxxxxxxxxxxxxx&amp;amp;ifq;" onsubmit="
  window.location = 'targetPage.html';" method="POST" id="ss-form"&gt;
  </code></pre>
  
  <p>IE and Safari both did the redirect automatically and the response never got written to the Google Form.  If I drop the redirect, the action works perfectly in both and the response is recorded in the Google spreadsheet.</p>
  
  <p>So I attempted to pull the action out and instead did it everything in onsubmit instead, like so:</p>
  
  <pre><code>&lt;form target="GoogleResponse" onsubmit="this.action = https://docs.google.com
  /spreadsheet/formResponse?formkey=xxxxxxxxxxxxxxxxxxxxxxxxxx&amp;amp;ifq'; 
  window.location = 'targetPage.html';" method="POST" id="ss-form"&gt;
  </code></pre>
  
  <p>Same problem as before, IE and Safari both redirect, and nothing is written to the Google spreadsheet.  And once again, if I remove the redirect the response gets recorded in all browsers.  I can also do other stuff like throw in an alert after the action, and everything continues to work fine.  The only time I see the issue is with the redirect.</p>
  
  <p>So at this point the only thing I can figure is that their is some sort of conflict between the redirect and the action.  I have pretty limited working knowledge of javascript and forms so any help or recommendations would be greatly appreciated!</p>