Answers for "how to add onclick event to anchor tag using javascript"

1

onclick on anchor tag

<a href='more.php' onclick='show_more_menu()'>More >>></a>
Posted by: Guest on July-18-2020
0

js click anchor

// Simulating click after 3 seconds
setTimeout(function(){
  document.getElementById('fooLinkID').click();
}, 3 * 1000);
Posted by: Guest on October-15-2020

Code answers related to "how to add onclick event to anchor tag using javascript"

Browse Popular Code Answers by Language