title: Second form.submit() doesn't work in Safari on XP, works on other browsers
body: <p>I have some code that uses a form.submit() to open up another window when you click something on my page.  It works fine in IE 6-8, Firefox and Chrome, and Safari on Mac.  But in Safari on Windows XP, after you click that something, none of the other links that do form.submit() work.  Even the <em>same</em> something doesn't do it.  Here's some of the callback code for that button:</p>
  
  <pre><code>accessEmployeeViewClicked = function() {
      var form=document.Form&lt;xsl:value-of select="//PAGE/@NAME" /&gt;;
  
      form.action = 'ServletName';
      form.target = "otherTarget";
      form.submit();
  };
  </code></pre>
  
  <p>The function is accessed by the following code:</p>
  
  <pre><code>&lt;a href="#" onclick="accessEmployeeViewClicked();return false;"&gt;Access employee's view &amp;gt;&amp;gt;&lt;/a&gt;
  </code></pre>
  
  <p>I put a breakpoint in the Safari built-in debugger, and the second time you click it, it definitely gets into the <code>accessEmployeeViewClicked()</code> function, but the <code>form.submit();</code> does nothing.  As per the suggestion in the comments, I changed the form.target to "_blank" but that had no effect.</p>
  
  <p>I've looked at these similar questions:</p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/333329/firefox-handles-xxx-submit-safari-doesnt-what-can-be-done">Firefox handles xxx.submit(), Safari doesn&#39;t ... what can be done?</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/2410296/document-form-submit-wont-submit-in-safari">document.form.submit(); won&#39;t submit in safari</a></p></li>
  </ul>
  
  <p>and tried the suggestions, and they don't help.</p>