Input Range stepDown() Method - Decrement the value of a slider control by "1" (default): - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Range

Description

Input Range stepDown() Method - Decrement the value of a slider control by "1" (default):

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>
Points: <input type="range" id="myRange" value="60">

<button onclick="myFunction()">Test</button>

<script>
function myFunction() {/*w  ww .j a  v a2  s. c  o  m*/
    document.getElementById("myRange").stepDown();
}
</script>

</body>
</html>

Related Tutorials