I have a page which is dependent upon scripts on page load(script internal and external). When a page loads everything is fine. But when user click back button, no script execute in Safari, FF/IOS 5(Iphone/Ipad/Ipod) and Andriod? It is working fine in most modern browsers(Chrome/IE)
Addding this line will solve the issue in most browser except in Ipod/Iphone. How to solve this in Ipod/Iphone?
window.onunload = function () { };
I have found that I need to use,
window.onpageshow = function (event) {
if (event.persisted) {
//Do my work which i need to do in initialization
}
};