I have a javascript web application that contains lots of clickable elements that are currently all <a href='javascript:void(0)'>
elements. Because there are so many links, as the user hovers over the page, javascript:void(0)
flickers on and off in the lower left hand corner of browsers such as chrome and firefox which is annoying and ugly.
I know that I should leave these elements as links for accessibility and mobile friendliness. Is there a way to prevent this behavior in the browser? Alternatively I could convert all of the <a href='javascript:void(0)'>
tags to <div>
tags on the fly for non-touch browsers but that seems messy.
Those elements aren't hyperlinks in the first place, so replace them with <span>
elements styled with cursor:pointer
(and no href
attribute).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With