Skip to content
Related Articles

Related Articles

HTML | <form> onreset Attribute

View Discussion
Improve Article
Save Article
  • Last Updated : 30 May, 2019

The HTML <form> onreset Attribute is used to specify the form reset fields.


<form onreset = "script">

Attribute Value: This attribute contains single value script which works when onreset event call.


<!DOCTYPE html > 
            HTML form onreset attribute
            body { 
            h1 { 
            function Geeks() { 
                alert("Form Reset...") ; 
        <h2>Form onreset event attribute</h2
        <form onreset="Geeks()" style="color:blue";> 
            First Name: <input type="text"></br
            Last Name: <input type="text"></br
            <input type="reset"


Supported Browsers: The browser supported by <form> onreset attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!