HTML onsubmit Event Attribute
Try it yourself »
The onsubmit event attribute is supported in all major browsers.
Definition and Usage
The onsubmit attribute fires when a form is submitted.
The onsubmit attribute is only used within: <form>.
Differences Between HTML 4.01 and HTML5
|script||The script to be run on onsubmit|
HTML Event Attributes
Thank You For Helping Us!
Your message has been sent to W3Schools.