Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <input type="range" id="myRange"> <p>Click the button to disable the slider control.</p> <p><b>Tip:</b> Try the slider control before and after you have clicked on the button, to see the effect.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myRange").disabled = true; } </script> </body> </html>