HTML | DOM Input Range max Property Last Updated : 31 Aug, 2022 Comments Improve Suggest changes Like Article Like Report 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:rangeObject.max = number Property Values: It contains single value number which specify the maximum value allowed for the slider control. Return Values: It returns a string which represents the maximum allowed value. Example-1: Returns the Input Range max Property html <!DOCTYPE html> <html> <head> <title> DOM Input Range max Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Range max Property</h2> <input type="range" id="myRange" min="10" max="50"> <br> <br> <button onclick="myGeeks()"> Click Here! </button> <p id="GFG" style="font-size:23px; color:green;"> </p> <script> function myGeeks() { // Return Input range max Property var x = document.getElementById( "myRange").max; document.getElementById( "GFG").innerHTML = x; } </script> </body> </html> Output: Before Click on button: After Click on button: Example-2: Set Input Range max Property. html <!DOCTYPE html> <html> <head> <title> DOM Input Range max Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2> DOM Input Range max Property </h2> <input type="range" id="myRange" min="10" max="50"> <br> <br> <button onclick="myGeeks()"> Click Here! </button> <p id="GFG" style="font-size:23px; color:green;"> </p> <script> function myGeeks() { // Setting Input Range max Property var x = document.getElementById( "myRange").max = "70"; document.getElementById( "GFG").innerHTML = "The value of the max 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 max 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 max Property J jit_t Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads 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 name Property The DOM Input Range NAME Property in HTML DOM is used to set or return the value of name attribute of a range field. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It returns 2 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 HTML | DOM Input Week max Property The DOM Input Week max property in HTML DOM is used to set or return the value of the max attribute of a week field. The max attribute specifies the maximum value (week and year) for a week field. Syntax: It returns the max property.weekObject.maxIt is used to set the max property.weekObject.max = Y 2 min read HTML | DOM Input Time max Property The DOM Input Time max Property in HTML DOM is used to set or return the value of the max attribute for the Time field. The max attribute specify the maximum time value allowed for the Time field. Syntax: It returns the max property.timeObject.maxIt is use to set the max property.timeObject.max = hh 2 min read Like