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.
script is not loading on Browser Back button issue
Collapse
X
-
Tags: None
-
I need to execute my code in case of browser back button event also
ref. https://developer.mozilla.org/en-US/...dow.onpopstate
Comment