Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- </style>
- <script type="text/javascript">
- var score = 0;
- function clickBtn() {
- score++;
- console.log(score);
- document.getElementsByTagName("p")[0].firstChild.data = "Clicks: " + score;
- }
- </script>
- <body>
- <center>
- <button id="clickbtn" onclick="clickBtn()">Click</button>
- <p id ="score">Clicks: 0</p>
- <div id='zdj'>
- </div>
- </center>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement