<script> let timeShow = document.createElement("div"); setInterval(() => { let date = new Date(); timeShow.innerHTML = date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds(); },100); </script>