The onClick property is an event handler used to handle the event of a mouse click on the Reset button.
<html> <head> <title> Example of the reset onClick event handler</title> </head> <body> <form name="form1"> Enter Name: <input type="text" Name="name" Size=15> <br> Enter Phone: <input type="text" Name="phone" Size=10> <br><br> <input type="reset" name=resetbutton value=Reset onClick='alert("The reset button was clicked")'> <br> <br> </form> </body> </html>