<html>
<body>
<input type="range" id="myRange"><br><br>
<button onclick="disableBtn()">Disable Slider Control</button>
<button onclick="undisableBtn()">Undisable Slider Control</button>
<script>
function disableBtn() {
document.getElementById("myRange").disabled = true;
}
function undisableBtn() {
document.getElementById("myRange").disabled = false;
}
</script>
</body>
</html>