title: HTML form action and onsubmit issues
body: <p>I want to run JavaScript user validation on some textbox entries.</p>
  <p>The problem I'm having is that my form has the action of going to a new page within our site, and the <code>onsubmit</code> attribute never runs the JavaScript function.</p>
  <p>Is there a better solution, or one that works with the following code: <em>Note</em>: the JavaScript file is written correctly and works if you switch the action to <code>checkRegistration()</code>.</p>
  <p>It is merely an issue with running both action and JavaScript.</p>
  <pre><code>&lt;form name=&quot;registerForm&quot; action=&quot;validate.html&quot; onsubmit=&quot;checkRegistration()&quot; method=&quot;post&quot;&gt;
      &lt;!-- Textboxes are here --&gt;
      &lt;!-- And the submit button --&gt;
  &lt;/form&gt;
  </code></pre>