onSubmit
The instruction(s) to be executed are placed within quotes. This event handler will execute the instruction(s) when the event it has been assigned to has been activated. You'll see this most when forms are used that require user input. The 'onSubmit' action might be the verification of data or the beginning step of converting of the data into whatever format you require. The 'onSubmit' event handler works with the FORM HTML tag or 'form' JavaScript object.

For example:
<FORM onSubmit="formdata (formatcheck = 'true')">
This Event Handler is used with the following:

FORM