Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
- <title>Ulazni zadatak</title>
- <link rel="stylesheet" href="style.css" />
- </head>
- <body>
- <h1 id="nekiID"></h1>
- </body>
- <script>
- setInterval(function() {
- var date = new Date();
- document.getElementById('nekiID').innerHTML = date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds();
- }, 1000);
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement