Edit This Code:
See Result »
<!DOCTYPE html> <html> <body> <input type="range" id="myRange"> <p>Click the button to change the value of the slider control.</p> <button onclick="myFunction()">Try it</button> <p><strong>Note:</strong> input elements with type="range" are not supported in IE 9 and earlier versions.</p> <p id="demo"></p> <script> function myFunction() { document.getElementById("myRange").value = "75"; } </script> </body> </html>
Result: