sayham-sjb
9/10/2017 - 8:01 PM

ClickCountWithHovering.html

ClickCountWithHovering #html #VS

<html>
  <head>
    <script>
      var hoverCount = 1;
    </script>
  </head>
  <body>
    <div style="text-align: center;">
      <button class="hoverButton" type='button' 
              onmouseover='alert ("Hovered " + hoverCount +" times."); 
                           ++hoverCount'>HOVER COUNT</button>
      <button class="hoverButton" type='button' 
              onmouseover='alert ("Hover count is cleared."); 
                           hoverCount = 1'>RESET COUNT</button>
    </div>
  </body>
</html>