Hi all. I could use some help. I’ve spent quite a while looking online for a solution but I got in over my head.
I’ve written a script that goes through a document and assings an onclick event to all the links in a page. The new function assigned basically calls a seperate function and then: return false;
The goal was that the return false would allow for my function to fire, but prevent the browser from actually following the link.
This works in FireFox, however in IE the return false is not preventing the navigation to the url in the link.
I’ve read up on this and I think I get why it’s not working, I’m just not clear on if there is a work around or not.
Is there anyway to assing an onclick in runtime to an a tag element, and prevent IE from actually following that href?
Thanks in advance,
– Dave