title: Submit form in <a href="form.submit();">
body: <p>Sorry for asking a weird question...
  I want to submit a form out of . But I want to allow users to open the link in a new tab (e.g Ctrl+Click).
  Here is what I have already tried.</p>
  
  <pre><code>1 . &lt;a href="#" onclick="document.form1.submit();"&gt;Submit Form&lt;/a&gt;
  </code></pre>
  
  <p>This opens the new link in the same tab and the old link in the new tab.</p>
  
  <pre><code>2. &lt;a href="javascript: document.form1.submit();"&gt;Submit Form&lt;/a&gt;
  </code></pre>
  
  <p>This does not let the link to be opened in a new tab.</p>
  
  <p>How can I make it right?</p>
  
  <p>Thanks.</p>