Prevent local links from scrolling but keep the click in the browser history
<p>I'm using jQuery to toggle the visibility of content on a webpage through local anchors and their onclick attributes. It would be nice to prevent the page from scrolling to the anchor in order to to keep parts of the menu, located on top of the content, "always" in sight. jQuery's event.preventDefault() seemed to do the trick but than I realized that the browser history is disabled, too. Also the anchor won't be show in the url, which is not favored by me.</p>

<p>Is there a way to only partly disable the default behaviour, like scrolling?</p>

<p><a href="http://daclown.de/somebrand" rel="nofollow">The webpage's link.</a></p>
