document.getElementById("settime").value = "13:24:00"; <input id="settime" type="time" step="1" /> # We put seconds as a default value to the HTML input and it shows now the seconds as well.