Jump to content

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


meman1188

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.