Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8"/>
- <link rel="stylesheet" href="style.css">
- <script>
- var n = 0;
- var minuty = document.getElementById("minut");
- function prost() {
- var textB = document.getElementById("kwadrat");
- textB.innerHTML = n;
- if (n < 100) (setInterval(function(){n = n + 1;}, 1000));
- setInterval(function(){textB.innerHTML = n;}, 1000);
- }
- </script>
- </head>
- <body onload="prost()" id="body">
- <div id="kwadrat">
- </div>
- <div id="minut">
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement