I have numerous anchor tags on my page that only trigger jQuery actions on the same page.
The don\'t redirect the user to another location, which is the normal expected
If you have links that aren't links, perhaps they shouldn't be links? :-) You might consider a different UI element that doesn't have a default behavior (outside of a form), like button
(you can style buttons to a substantial degree). Or you could use span
or similar, but if you do be sure to set the appropriate accessibility information (such as an ARIA role="link") so that you don't mess up screen readers (and browser tabbing).
But if you want to continue to use ...
, just attach a handler to them that calls event.preventDefault();
or returns false
.