HTML | DOM Input Range step Property Last Updated : 31 Aug, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The DOM Input Range step Property in HTML DOM is used to set or return the value of the step attribute of the slider control. The step attribute is used to specify the size of space between two values. This attribute can be used with both min and max to create a range of values. Syntax: It returns the Input Range step Property:rangeObject.stepIt is used to set Input Range step Property:rangeObject.step = number Property Values: It contains single value number which specify the size of steps. The default value of steps is 1. Return Values: It return a number which represents the increment between values. Example-1: html <!DOCTYPE html> <html> <head> <title> DOM Input Range step Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2> DOM Input Range step Property </h2> <input type="range" id="myRange" step="15"> <br> <br> <button onclick="myGeeks()"> Click Here! </button> <p id="GFG" style="font-size:23px; color:green;"> </p> <script> function myGeeks() { // Accessing input value var x = document.getElementById( "myRange").step; document.getElementById( "GFG").innerHTML = x; } </script> </body> </html> Output: Before Click on button: After Click on button: Example-2: html <!DOCTYPE html> <html> <head> <title> DOM Input Range step Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2> DOM Input Range step Property </h2> <input type="range" id="myRange" step="15"> <br> <br> <button onclick="myGeeks()"> Click Here! </button> <p id="GFG" style="font-size:23px; color:green;"> </p> <script> function myGeeks() { // Accessing input value var x = document.getElementById( "myRange").step = "25"; document.getElementById( "GFG").innerHTML = "The value of the step attribute"+ " was changed to " + x; } </script> </body> </html> Output: Before Click on button: After Click on button: Supported Browsers: The browser supported by DOM Input Range step Property are listed below: Google Chrome 4 and aboveEdge 12 and aboveFirefox 23 and aboveOpera 11 and aboveSafari 3.1 and above Comment More infoAdvertise with us Next Article HTML | DOM Input Range value Property J jit_t Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Input Range type Property The DOM Input Range type Property in HTML DOM is used for returning the which type of form element the slider control is. All the Browser should return "range". whereas the Internet Explorer always returns the "text" instead of "range". Syntax: rangeObject.type Return Value: It returns a string valu 1 min read HTML | DOM Input Range value Property The DOM Input Range value Property in HTML DOM is used to set or return the value of the slider control or input range field. The attribute specifies the default value or the user type value. Syntax: It returns the value property.rangeObject.valueIt is used to set the value property.rangeObject.valu 2 min read HTML | DOM Input Range min Property The Input Range min Property in HTML DOM is used to set or return the value of min attribute of the slider control. The min attribute is used to specify the minimum value of slider control. Syntax: It returns the Input Range min Property:rangeObject.minIt is used to set Input Range min Property:rang 2 min read HTML | DOM Input Range max Property The Input Range max Property in HTML DOM is used to set or return the value of max attribute of the slider control. The max attribute is used to specify the maximum value of slider control. Syntax: It returns the Input Range max Property:rangeObject.maxIt is used to set Input Range max Property:rang 2 min read HTML | DOM Input Range form Property The DOM Input Range form Property in HTML DOM is used to return the reference of form containing the input range field. It is a read-only property that returns the form object on success.Syntax: rangeObject.form Return Values: It returns a string value which specify the reference of the form contain 1 min read HTML DOM Input Range list Property The input Range list property in HTML DOM is used to return a reference to the datalist element that contains an input range field. Syntax: rangeObject.list.id Return Value: It returns a string value that represents the value of the id attribute of the datalist element. Example: Below HTML code is u 1 min read Like