<!DOCTYPE html>
<html>
<body>

Number: <input type="number" id="myNumber">

<p>Click the button to increment the value of the number field by 1.</p>

<p><strong>Note:</strong> This is the same as clicking the up arrow on the right side of the number field.</p>

<button onclick="myFunction()">Try it</button>

<p><strong>Note:</strong> The stepUp() method is not supported by Internet Explorer.</p>

<script>
function myFunction() {
    document.getElementById("myNumber").stepUp();
}
</script>

</body>
</html>