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">
- <title>Document</title>
- </head>
- <body>
- <p id="func"></p>
- <p id="interval"></p>
- <script>
- setTimeout(timeout,5000);
- function timeout(){
- document.getElementById('func').innerHTML="timeout";
- }
- setInterval(interval, 3000);
- function interval(){
- let data= new Date();
- document.getElementById('interval').innerHTML=data.getHours()+" "+data.getMinutes()+
- " "+ data.getSeconds()+ " "+ data.getMilliseconds()+" "+ data.getUTCMilliseconds();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement