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