title: How to submit button-less form with dispatchEvent
body: <p>IF I have a button-less form and I want to test if the possible onsubmit function returns true and then submit it. This is my current code, which works fine.</p>
  
  <pre><code>var form = document.getElementById('form');
  var evt = document.createEvent('Event');
  evt.initEvent('submit', true, true);
  if(form.dispatchEvent(evt))
  {
      form.submit();
  }
  </code></pre>
  
  <p>Isn't it possible to make dispatchEvent also submit the form?</p>