HTML | onsubmit Event Attribute
The onsubmit event attribute in HTML is triggered when a form is submitted.
<form onsubmit = "script">
Attribute Value: This attribute contains single value script which works when onsubmit event call.
Note: This attribute can only be used within form tag.
Supported Browser: The browser supported by onsubmit event attribute are listed below:
- Google Chrome
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.