HTML | oninvalid Event Attribute
The oninvalid event attribute works when an input field values are invalid or empty. The script run when a user clicks on the submit button. The required input field must be filled before submitting it.
<element oninvalid = "script">
Attribute Value: This attribute contains single value script which works when oninvalid attribute called. It is supported by all HTML elements.
Supported Browsers: The browser supported by oninvalid event attribute are listed below:
- Internet Explorer 10.0
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.