javascript a tag onclick code example
Example 1: onclick a tag
<a href='http://www.google.com' onclick='return check()'>check</a>
<script type='text/javascript'>
function check() {
return false;
}
</script>
Example 2: javascript button
<button onclick="Function()">Text</button>
Example 3: javascript onclick
var myElem = document.getElementByID('ElemID');
myElem.onclick = function() {
//do stuff
}
Example 4: a tag onclick
<a href="javascript:show_more_menu();">More >>></a>