Advertisement
here2share

HTML count of button clicks

Aug 12th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.34 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3.   <head>
  4.     <script type="text/javascript">
  5.       function count_zzz() {
  6.         for(var i=1; i<=3; i++) {
  7.          alert("Count Of Clicks: "+i+" has been made!")
  8.        }
  9.      }
  10.    </script>
  11.  </head>
  12.  <body>
  13.     <input type="button" onclick="count_zzz()" value="Count Of Button Clicks!"/>
  14.  </body>
  15. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement