Set the hash to a dummy hash which doesn't hit any id
at your page, for example:
window.location.hash = "_";
""
it causes the page to scroll to the top because the hash "#"
by itself is equivalent to "_top"
.window.location.href = "..."
to get rid of the "#", you cause the browser to reload the page what is most likely not intended.