Is there a way to submit an HTML form using JavaScript that is guaranteed to work in all situations?
I elaborate. The common approach seems to be:
fo
For a form named submit just calling its buttons click function works for me.
document.forms[0].submit.click(); //where submit here is just the name of the button/input tied to the form.