Horje

Example of HTML oninvalid Event Attribute

It will Execute a JavaScript when an input field is invalid.
index.html
Example: HTML
 <input type="text" oninvalid="alert('You must fill out the form!');" required> 

Output should be:

Example of HTML oninvalid Event Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Form Events Attribute
Uploaded by:
Admin