title: What is the difference between onsubmit="submitForm();" and onsubmit="return submitForm();"
body: <p>Does this the example below mean the form will be submitted twice?</p>
  
  <pre><code>&lt;form name="myForm" action="demo_form.asp" onsubmit="submitForm();" method="post"&gt;
  
  function submitForm(){
     document.myForm.submit();
  }
  </code></pre>
  
  <p>I have a bug which records two of each record sometimes. and i'm suspecting its because the form is submitting twice</p>