I have read this link
How can we stop web page view after sign-out using browser back
My problem is bit different
I have one webpage, in which viewing of div is controlled by JS
Now say initially I am on div1, once I click on change div icon, div2 appears and div1 is disappeared, now if someone presses back button on android it goes on previous page and i wanted to display div1 hiding div2.
any help??
Problem solved used onhashchange(), it helped.