<html>
<body>
Time: <input type="time" id="myTime" step="5">
<p>Click the button to display the value of the step attribute of the time field (seconds interval).</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myTime").step;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_input_time_step3 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:47:30 GMT -->
</html>