I need to handle the browser back button in javascript. I have implemented the tabs functionality in JS. So I want the user to return to the exact time from where they navigated to another page.
I can keep the tab # in some hidden input field. and check with the same in javascript.
But how do I make sure that a function gets called in javascript when the user hits the back button. some help would be appreciated.