form.submit

"* can "automatically" submit things this way without having to hit the submit button. ?But do you have to pass in the form parameters?"

You don't have to pass the form parameters. submit() will just submit whatever is currently in the form fields. You have to fill in the form fields using the "value" property programatically using JavaScript if you want to control what's passed.

Is there any way to cause the submit to auto-generate an event object and pass it to handler? Something like setTimeout( "window.getElementById('myForm').submit(e);" );. Thanks. Zzen 04:54, 12 October 2005 (PDT)

 

Comparison with form submit button

I believe saying the submit method is equivalent to using a submit button in the form is inexact, even though the DOM specification says that. I mentioned this in http://lists.w3.org/Archives/Public/...nMar/0011.html

Chealer 2012-01-21

Document Tags and Contributors

 Contributors to this page: Chealer, Zzen, Hao2lian
 Last updated by: Chealer,