set range value html code example Example: javascript get html slider value Click to copyvar x = document.getElementById("myRange").value