onsubmitonsubmit*
*



Contents  *



Index  *Topic Contents
*Previous Topic: onstart
*Next Topic: onunload

onsubmit

Description

Fires when a form is about to be submitted.

Return Value

Returns TRUE or FALSE.

Remarks

The onsubmit event default action is to submit the form. This event can be overridden by returning FALSE in the event handler. The purpose of this is to allow the developer to do validation of the data on the client side and prevent invalid data from being submitted to the server. This event will not bubble. Events that do not bubble can only be handled on the individual object that fired the event.

Applies To

FORM


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.