title: How to avoid scrolling to the top of the page when emptying window.location.hash
body: <p>Why does the following code make the scroll jump to the top of the page? </p>
  
  <pre><code>window.location.hash = '' 
  </code></pre>
  
  <p>Is there a way to empty it without jumping to the top of the page?</p>