How to disbale anchor tag by using JavaScript.

Learn how to disable <a> tag when using link of any text, button or etc. You can do this by using simple inline or function javascript and onclick return false in javascript anchor tag will not work and disable properly. Its do the page not refresh and anchor tag not work.

 

<a href=”#” oncilck=”return false; “>Home</a>

Leave a Reply

Your email address will not be published. Required fields are marked *