Input Time stepDown() Method - Decrement the minutes by 10 - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Time

Description

Input Time stepDown() Method - Decrement the minutes by 10

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>
Time: <input type="time" id="myTime" value="16:32:55">

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

<script>
function myFunction() {// w w  w  .java2s  . c  om
    document.getElementById("myTime").stepDown(10);
}
</script>

</body>
</html>

Related Tutorials