I use jQuery, I need to make some anchor tags perform no action.
I usually write it like this:
link
H
Make sure all your links that you want to stop have href="#!" (or anything you want, really), and then use this:
href="#!"
jq('body').on('click.stop_link', 'a[href="#!"]', function(event) { event.preventDefault(); });