I tried to create a JS script that would change the page layout to return to a specific hash location:
var StopAtThisHash ='#'; var CurrentHash = window.location.hash; var continueLoop = true; while ((window.history.length>0) && (continueLoop)) { window.history.back(); var NowWeAreAtHash = window.location.hash;
Strange, in Chrome and FF window.location.hash does not change after back (). none of them are reduced by 1, as I expected. The loop runs endlessly and the browser freezes.
In IE 9, this is similar to running.
Any workarounds around this?
Radu094
source share