| ||||||||||||||||||||||||||||||||||||||||||
onsubmit EventFires when a FORM is about to be submitted. Syntax
Remarks
A submit event occurs when a form is submitted. This event only applies to the FORM element. This event can be overridden by returning false in the event handler. This capability is useful for the developer who wants to validate data on the client side to prevent invalid data from being submitted to the server. If the event handler is called by the onsubmit attribute of the form object, the code must explicitly request the return value using the Note that submitting a form thru script using the submit method does not invoke the onsubmit event handler. Event Object PropertiesWhile event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.
ExampleThe example demonstrates how to request the return value using the return function when using onsubmit on a form. <form onsubmit = "return validateForm(this)"> ... form control definitions here ... </form> Applies ToSee Alsoaction, method, Data Entry Validation Routines |
| |||||||||||||||||||||||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme