Just updated my Google Chrome and href=”javascript:void(0)” is not working anymore!

We often use <a href=”javascript:void(0)”> in buttons to avoid the buttons from navigating to another page or do some action. However, Google Chrome recently updated their browser and doesn’t support this function anymore. To solve this, we can use <a onclick=”return false;”> instead.

Leave a Reply

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