I am using Ajax and hash for navigation. Is there a way to check if the window.location.hash changed like this?
http://example.com/blah#123 to http://example.com/blah#456
It works if i check it when the document loads. But If I have #hash based navigation it doesnt work when I press the back Button on the browser (so I jump from blah#456 to blah#123) It shows inside the address box but I can't catch it with JavaScript.
any Ideas? Thanks :)