Don't reload the page. Instead, set up a onhashchange
event handler, and adjust the left value from there:
window.onhashchange = function() {
// do stuff
}
Otherwise, why using hash links instead of regular links? In any case, if you really want to reload, just put window.location.reload()
inside the onhashchange
handler...