html onclick a tag 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: on click in a tag
<a onclick='newwin()'>Anchor</a>
Example 3: onclick on anchor tag
<a href='more.php' onclick='show_more_menu()'>More >>></a>