jQuery LocalScroll + hashchange event browser compatibility issue
I'm building a site where I am using Ariel Fleslers jQuery LocalScroll plugin , which I want to do two things: 1) Animate a scroll to an anchor when a link is clicked 2) Scroll to the previously visited anchor when the browsers' back button is pressed. The scrolling takes place inside a container where the content is overflowing. Number one was straight forward enough. To acheive number two I did a fair bit of googling but didn't really find a solution, even though I came across a few posts by people who were looking to do something similar. I ended up using Ben Almans jQuery hashchange event