View Single Post
Old 08-20-2008, 08:01 PM   PM User | #11
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,460
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
because he doen't want the link to do anything, and didn't care to follow it.
was thinking to use hash, but then what about the first visits....

if the link goes to where he already is, nothing will happen (was the theory).
i know it's unconventional, but my first two guesses didn't work.
rethinking about it, i bet some browsers will re-nav though if the link is an absolute url...

this is a prime example of why not use an 'a' tag for javascript actions, but hey, OP was determined.


its still not working, so if you have any suggestions, please feel free to share.


perhaps try:

Code:
onmouseover="this.href='javascript:void(0)' "
onclick=" somefunction(); return false;"
i still don't know why it's following the links in the first place, so that's just a stab.

you can also style a span to look like an a tag and use it instead. that would work for sure.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%

Last edited by rnd me; 08-20-2008 at 08:11 PM..
rnd me is offline   Reply With Quote