I am overriding a form submit event like this:
form.onsubmit = function(event) {
event.preventDefault();
But when I call submit on the fo
Following on @garryp's answer on "return false". To add on, further reading from MDN event.stopImmediatePropagation to see differences and use case between event.preventDefault and event.stopPropagation.
On the side note, "return false;" is the same calling both;
event.preventDefault();
event.stopPropagation();
Hope this helps.