 <p>Most people would prevent the form from submitting by calling the <a href="https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault" rel="nofollow"><code>event.preventDefault()</code></a> function. </p> <p>Another means is to remove the onclick attribute of the button, and get the code in <code>processForm()</code> out into <code>.submit(function() {</code> as <code>return false;</code> causes the form to not submit. Also, make the <code>formBlaSubmit()</code> functions return Boolean based on validity, for use in <code>processForm();</code></p> <p><code>katsh</code>'s answer is the same, just easier to digest. </p> <p>(By the way, I'm new to stackoverflow, give me guidance please. )</p>