<html>
<body>
Month and year: <input type="month" id="myMonth" value="1997-11">
<p>Click the button to decrement the value of the month field by 1 month (each time you click).</p>
<p><strong>Note:</strong> This is the same as clicking the down arrow on the right side of the date field for the "month" section.</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> The stepDown() method is not supported by Firefox.</p>
<script>
function myFunction() {
document.getElementById("myMonth").stepDown();
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_month_stepdown2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:17 GMT -->
</html>