By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

script is not loading on Browser Back button issue

P: 1
I am working in an ecommerce site.I had a requirement that my cart ribbon should show the number of items in my cart.I placed the code(which is giving number of items)inside a document.ready function.But when i presses browser back button in firefox my page is not loading so it is showing number of items empty.I need to execute my code in case of browser back button event also.Any solution would be appreciated.I tried keep my code in onbeforeunload function also.But not working.
Feb 25 '14 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
I need to execute my code in case of browser back button event also
then hook into that event.

ref. https://developer.mozilla.org/en-US/...dow.onpopstate
Feb 25 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.