Horje

Example of HTML onreset Event Attribute

It will Execute a JavaScript when the Reset button in a form is clicked.
index.html
Example: HTML
 <form onreset="myFunction()">
  Enter name: <input type="text">
  <input type="reset">
</form> 

Output should be:

Example of HTML onreset Event Attribute




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