Advertisement
niske

Untitled

Feb 6th, 2023 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <script> function displayTime() { var currentTime = new Date(); var hours = currentTime.getHours(); var minutes = currentTime.getMinutes(); var seconds = currentTime.getSeconds(); document.getElementById("time").innerHTML = hours + ":" + minutes + ":" + seconds; } setInterval(displayTime, 1000); </script> <div id="time"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement