Surprised, I am encountering this weird issue while submitting form from JS.
Consider a simple form submitted using two ways from a submit
Thats how form.submit behaves;
The form's onsubmit event handler (for example, onsubmit="return false;") will not be triggered when invoking this method from Gecko-based applications. In general, it is not guaranteed to be invoked by HTML user agents
Make onsubmit
call a function and simply call that onclick
as well.