<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>