I have kind of the opposite problem of the accepted answer to this question: Ajax, back button and DOM updates
There, most people wanted Firefox to fire "unload" event when coming Back to the page with the Back button.
We manipulate the divs that are shown/hidden (navigating a tree), and go off to another page. When you click "Back", Firefox uses its bfcache and shows the page as it was when you left (this is good). IE shows the page in its initial state (this is bad). We want IE to behave like firefox and use its bfcache, are there any tricks to make it do so?
(we are not using Jquery)
I found a similar question:( Differences in Internet Explorer and Firefox when dynamically loading content then going forward and back ) The answer there is that you can trick IE's history mechanism into keeping the modified dom by using a lot of javascript to rewrite the document, or put the values you want to save into hidden input fields. Anything better?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With