crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript setInterval()</h2> <p>Using setInterval() to display the time every second (1000 milliseconds).</p> <h1 id="demo"></h1> <script> setInterval(myFunction, 1000); function myFunction() { let d = new Date(); document.getElementById("demo").innerHTML= d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds(); } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBzZXRJbnRlcnZhbCgpPC9oMj4NCg0KPHA+VXNpbmcgc2V0SW50ZXJ2YWwoKSB0byBkaXNwbGF5IHRoZSB0aW1lIGV2ZXJ5IHNlY29uZCAoMTAwMCBtaWxsaXNlY29uZHMpLjwvcD4NCg0KPGgxIGlkPSJkZW1vIj48L2gxPg0KDQo8c2NyaXB0Pg0Kc2V0SW50ZXJ2YWwobXlGdW5jdGlvbiwgMTAwMCk7DQoNCmZ1bmN0aW9uIG15RnVuY3Rpb24oKSB7DQogIGxldCBkID0gbmV3IERhdGUoKTsNCiAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImRlbW8iKS5pbm5lckhUTUw9DQogIGQuZ2V0SG91cnMoKSArICI6IiArDQogIGQuZ2V0TWludXRlcygpICsgIjoiICsNCiAgZC5nZXRTZWNvbmRzKCk7DQp9DQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==