HTML | DOM Input Range Object Last Updated : 30 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Range Object in HTML DOM is used to represent the HTML < input > element with type="range". This object 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: Returning name of <input> element from "Geek_Range" id using document.getElementById("Geek_Range") html <!DOCTYPE html> <html> <head> <title> HTML DOM Input RANGE 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 Input Range Object</h2> <input name = Geek_range type="range" id="Geek_Range" value="90"> <br> <br> <button onclick = "myGeeks()"> Click Here </button> <p id="Geek_p"></p> <script> function myGeeks() { var x = document.getElementById("Geek_Range").name; document.getElementById("Geek_p").innerHTML = x; } </script> </body> </html> Output Before click on the button: After click on the button: Example-2: Returning value of < input > element from "Geek_Range" id using document.getElementById("Geek_Range") html <!DOCTYPE html> <html> <head> <title> HTML DOM Input RANGE 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 Input Range Object</h2> <input name = Geek_range type="range" id="Geek_Range" value="90"> <br> <br> <button onclick = "myGeeks()"> Click Here </button> <p id="Geek_p"></p> <script> function myGeeks() { var x = document.getElementById("Geek_Range").value; document.getElementById("Geek_p").innerHTML = x; } </script> </body> </html> Output Before click on the button: After click on the button: Example-3: Creating < input > element with type = “range”. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input RANGE Object </title> </head> <style> </style> <body style = "text-align:center;"> <h1 style = "color:green;" > GeeksForGeeks </h1> <h2>DOM Input Range Object</h2> <br> <button onclick = "myGeeks()"> Click Here </button> <p id="Geek_p"></p> <script> function myGeeks() { var x = document.createElement("INPUT"); x.setAttribute("type", "range"); document.body.appendChild(x); } </script> </body> </html> Output Before click on the button: After click on the button: Supported Browsers: Google Chrome 4Mozilla Firefox 23Edge 12Safari 3.1Opera 11 Comment More infoAdvertise with us P PranchalKatiyar Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML DOM adoptNode() Method This DOM adoptNode() method is used to adopt a node from another document. All node types can be adopted. All child nodes along with the original node can be adopted. AdoptNode() method is used to return node objects.Syntax: document.adoptNode(node)Parameter Value: DOM adoptNode() method contains on 2 min read HTML | DOM Style zIndex Property The Style zIndex property is used for set or return the stack order of a positioned element. The element which has a lower stack order will be behind of another element with higher stack order. For example, the element with stack order(1) will be in front of the element with stack order(0). The Styl 2 min read HTML | DOM Input Password Object The Input Password Object in HTML DOM is used to represent an HTML input element with type="password". The input element with type="password" can be accessed by using getElementById() method. Syntax: It is used to access input type="password"document.getElementById("id");It is used to create type="p 3 min read HTML | DOM Column Object The Column Object in HTML DOM is used to represent the HTML <col> element. This tag is used to set or get the properties of <col> element. It can be accessed by using getElementById() method.Syntax: document.getElementById("Col_ID"); This Col_ID is assigned to HTML < col > element. 2 min read HTML | DOM Input Hidden Object The Input Hidden object in HTML DOM represents the <input> element with type = âhiddenâ attribute. The element can be accessed by using getElementById() method.Syntax: document.getElementById("id"); where id is assigned to the <input> tag.Property Values: defaultvalue: It is used to set 2 min read HTML | DOM Input Time Object The Input Time object in HTML DOM represents an <input> element with type = "time" attribute. The time attribute can be accessed by using getElementById() method. Syntax: document.getElementById("id"); where id is assigned to the <input> tag. Property Values: list: It returns the referen 3 min read HTML DOM Geolocation coordinates Property The DOM Geolocation coordinates Property in HTML is used to return the position and altitude of the device on Earth. The returned Coordinates object could be used for various purposes including navigation and tracking the position of the device. Property Values: ValuesDescriptioncoordinates.latitude 2 min read HTML DOM Textarea disabled Property The DOM Textarea disabled Property is used to set or return whether the textarea element would be disabled or not. A disabled text area is un-clickable and unusable. It is a boolean attribute and is used to reflect the HTML Disabled attribute. Syntax: It is used to return the disabled property.texta 2 min read HTML | DOM Input Week Object The Input Week object in HTML DOM represents an <input> element with type = "week" attribute. The element can be accessed by using getElementById() method. Syntax: document.getElementById("id"); where id is assigned to the <input> tag. Property Values: list: It returns the reference of d 3 min read HTML | DOM Style borderImageSource Property The DOM Style borderImageSource Property is used to set or return the image to be used instead of the styles given by the border-style property. Syntax: To get the borderImageSource propertyobject.style.borderImageSourceTo set the borderImageSource propertyobject.style.borderImageSource = "none | im 3 min read Like