SHARE
TWEET

Untitled

a guest Jan 21st, 2020 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <style>
  3. </style>
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. <script type="text/javascript">
  12.  
  13.  
  14. var score = 0;
  15.  
  16. function clickBtn() {
  17.   score++;
  18.   console.log(score);
  19.   document.getElementsByTagName("p")[0].firstChild.data = "Clicks: " + score;
  20. }
  21.  
  22. </script>
  23. <body>
  24. <center>
  25. <button id="clickbtn" onclick="clickBtn()">Click</button>
  26.  
  27. <p id ="score">Clicks: 0</p>
  28. <div id='zdj'>
  29. </div>
  30. </center>
  31. </body>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top