<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>