how to give onclick function to anchor tag code example Example: onclick on anchor tag <a href='more.php' onclick='show_more_menu()'>More >>></a>