I am overriding a form submit event like this:
form.onsubmit = function(event) { event.preventDefault();
But when I call submit on the fo
To prevent the form posting your function must return false.
form.onsubmit = function(event) { event.preventDefault(); return false; }