how to add onclick event to anchor tag using javascript code example
Example 1: onclick on anchor tag
<a href='more.php' onclick='show_more_menu()'>More >>></a>
Example 2: js click anchor
// Simulating click after 3 seconds
setTimeout(function(){
document.getElementById('fooLinkID').click();
}, 3 * 1000);