d
Amit DhamuSoftware Engineer
 

OnClick Function

1 minute read 00000 views
<a id="click_me" href="javascript:void(0);">Click For Action</a>

<script type="text/javascript">
  var cm = document.getElementById('click_me')

  cm.onclick = function () {
    alert('Clicked')
  }
</script>