onsubmitNN 2 IE 3 DOM 2  

Bubbles: No (IE); Yes (NN 6); Cancelable: Yes  

Fires when a form element receives a request to submit the form from a submit-type input element but not from a scripted submit( ) method. This is the event to trigger one final client-side form validation prior to sending a form to the server. By canceling the event, a script in the onsubmit event handler aborts the submission.

 
Typical Targets

The form element.