meman1188 Posted January 24, 2008 Share Posted January 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted January 24, 2008 Share Posted January 24, 2008 I cannot get the whole point... If you don't want them to go the external site why have a link... could you elaborate... Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted January 24, 2008 Share Posted January 24, 2008 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. Quote Link to comment Share on other sites More sharing options...
meman1188 Posted January 25, 2008 Author Share Posted January 25, 2008 Thanks guys.. you are completely right, it was some javascript code that was modifying the onclick in the links. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.