Easy Tutorial
❮ Prop Track Kind Prop Node Nodetype ❯

onsubmit Event


Definition and Usage

The onsubmit event is called when the form is submitted.

Syntax

Parameter Description
JavaScriptCode Required. The JavaScript code to be executed after the event is triggered.

Browser Support

All major browsers support the onsubmit event.


Example

Example

Display an alert box after the submit button is clicked and the form is submitted:


❮ Prop Track Kind Prop Node Nodetype ❯