HTML | DOM Input Reset Object Last Updated : 26 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Reset Object in HTML DOM is used to represent the HTML <input> element with type="reset". This tag is used to access or create the <input> element. This element can be accessed by using getElementById() method. Syntax: document.getElementById("Input_ID"); This Input_ID is assigned to HTML <input> element. Example-1: Creating <input> element with type = "reset". HTML <!DOCTYPE html> <html> <head> <title> HTML DOM RESET Object </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Reset Object</h2> <button onclick="myGeeks()"> Click Here </button> <script> function myGeeks() { // creating input element with type = "reset" var x = document.createElement("INPUT"); x.setAttribute("type", "reset"); document.body.appendChild(x); } </script> </body> </html> Output: Before click on the button: After click on the button: Example-2: Returning value of <input> element from "GeekReset" id using document.getElementById("GeekReset") HTML <!DOCTYPE html> <html> <head> <title> HTML DOM RESET Object </title> </head> <style> #Geek_p { font-size: 30px; color: green; } </style> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Reset Object</h2> <input type="reset" id="GeekReset" value="Reset form"> <br> <br> <button onclick="myGeeks()"> Click Here </button> <p id="Geek_p"></p> <script> function myGeeks() { // access input element with type = "reset" var x = document.getElementById("GeekReset").value; document.getElementById("Geek_p").innerHTML = x; } </script> </body> </html> Output: Before click on the button: After click on the button: Example-3: Returning id of input element with type=”reset”. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM RESET Object </title> </head> <style> #Geek_p { font-size: 30px; color: green; } </style> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Reset Object</h2> <input type="reset" id="GeekReset" value="Reset form"> <br> <br> <button onclick="myGeeks()"> Click Here </button> <p id="Geek_p"></p> <script> function myGeeks() { // access input element with type = "reset" var x = document.getElementById("GeekReset").id; document.getElementById("Geek_p").innerHTML = x; } </script> </body> </html> Before click on the button: After click on the button: Note: type=”reset” is use to reset all value to it’s initial value using “Reset Button”. Supported Browsers: Google Chrome 1 and aboveMozilla Firefox 1 and aboveEdge 12 and aboveSafari 1 and aboveOpera Comment More infoAdvertise with us P PranchalKatiyar Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Textarea placeholder Property The DOM Textarea placeHolder Property is used to set or return the value of the placeholder attribute of a textarea field. It specifies a short hint that describes the expected value of an input field / textarea. A short message or hint displayed before entering value in textarea. Syntax: It is used 2 min read HTML | DOM Style backfaceVisibility Property The backfaceVisibility property is the deciding factor that would make an element visible or invisible when the element is not facing the screen. This property is helpful when an element is rotated, and its backside needs to be hidden. Syntax: Return the backfaceVisibility property:object.style.back 3 min read HTML | DOM HTML Object The HTML Object property in HTML DOM is used to represent or access the HTML <html> element with in the object. The <html> element is used to return the HTML document as an Element Object. Syntax: It is used to access a <html> element.var x = document.getElementsByTagName("HTML")[0 3 min read HTML | DOM IFrame Object The IFrame Object property in HTML DOM is used to create and access the <iframe> element within the object. An inline frame is used for embedding another document within the current HTML document. Syntax:It is used to access a <iframe> element.var x = document.getElementById("myframe");I 3 min read HTML | DOM Input Color Object The Input Color Object property in HTML DOM is used to create and access the <input> element within the object. The <input> is used to enter data in the input field. Declaration of input control that allow user to input data is can be done by <input> elements are used within a < 3 min read HTML | DOM TableData Object The TableData object in HTML DOM is used to represent the HTML td element. The td element can be accessed by using getElementById() method. Syntax: To Access td Element: document.getElementById("id");To Create td Element: document.createElement("td"); TableData Object Properties: PropertyDescription 3 min read HTML | DOM Input Number Object The Input Number Object in HTML DOM is used to represent an HTML input element with type= "number". The input element with type= "number" can be accessed by using getElementById() method. Syntax: It is used to access input number object.document.getElementById("id");It is used to create input elemen 3 min read HTML | DOM Style overflowY Property The Style overflowY property in HTML DOM is used to specify the behavior of the content when it overflows an element's top and bottom edges. The content may be hidden, shown or a scrollbar according to the value. Syntax: It returns the overflowY property.object.style.overflowYIt is used to set the o 6 min read HTML | DOM Object Object The Object object represents only HTML <object> element. We can access any <object> element by using the getElementById(); and also can create object element by using createElement(); method.Syntax: It is used to access Object element document.getElementById("id"); It is used to create o 2 min read HTML DOM Window localStorage Properties HTML DOM Window localStorage Properties allow you to store value pairs in web browsers using objects. It is a read-only property. This object is not expired even if the browser is closed. So, the data is never lost. Return Values: It returns  a Storage object. Syntax: SAVING data to localStorage usi 2 min read Like