Jump to content

[SOLVED] Preventing Link (<a>) using onclick='return false', not working for external


Recommended Posts

Is there a block preventing you from using return false; to stop a link to an external website?

 

ex. <a href='http://www.external.com' onclick='return false;'>Test</a> still goes to external.com. If i change it to href='internal.html' it works as expected.

 

I am currently in Firefox on Windows XP

 

Thanks for the help

I don't see why it's not working as expected; I tested it out in FF and IE and when you click on the link with the full url href; still nothing happens. it did not go to the "http://www.external.com" website; when the link was clicked.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.