Execute a script when a reset button in a form is clicked in HTML?

When a form is reset, the onreset attribute triggers. You can try to run the following code to implement onreset attribute −

Example


   
      
         Student Name:
                   
         Student Subject:
                   
               
         
Updated on: 2020-03-03T09:25:31+05:30

279 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements