Click Count with Hovering

HTML, CSS

by Sayham Chowdhury

HTML

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

CSS

.hoverButton{
  padding: 5px 5px;
}