Open In App
Related Articles

HTML | DOM Input Reset type Property

Improve Article
Save Article
Like Article

The Input Reset type Property in HTML DOM is used to return the type of form element of the reset field. It always returns the “reset” for an Input reset field.



Return Value: It returns a string value that represents the type of form element the Input reset field is.

Below program illustrates the reset type property in HTML DOM:
Example: This example returns the type of form element of the reset field. 


<!DOCTYPE html>
        HTML DOM Input reset type property
<body style="text-align:center;">
    <h1 style="color:green;">
    <h2>DOM Input reset type Property</h2>
    <input type="reset" id="GeekReset" value="Reset form">
        Click on below button to return the Property
    <button onclick="myGeeks()">
        Click Here
    <p id="Geek_p"></p>
        function myGeeks() {
            // Return Input Reset type Property
            var x =
            document.getElementById("Geek_p").innerHTML = x;

Before Clicking the Button: 

After Clicking the Button: 

Supported Browsers: The browser supported by DOM Input Reset type Property are listed below: 

  • Google Chrome 1 and above
  • Edge 12 and above
  • Firefox 1 and above
  • Opera
  • Safari 1 and above

Last Updated : 18 Oct, 2022
Like Article
Save Article
Similar Reads
Related Tutorials