Prevent default behavior when setting location.hash
<p>When I do this,</p>

<pre><code>location.hash = "test"
</code></pre>

<p>the url is updated and the page homes in on the element with that id.</p>

<p>Is there a way to stop the page from homing in to that element?</p>
