I\'m using the following code to append a hashtag to the end of a url. That way someone can copy that url and take them back to that page, with certain divs visable.
It depends. If you want to prevent it when the anchor is clicked, use this:
$("a.live").click(function(e) {
e.preventDefault(); // Prevents browsers default action
window.location.hash = 'live';
$("#live").slideDown();
});
If you want to prevent it from scrolling to the hash when the page is loaded, I'm not sure how you would prevent that.