javascript - Back Button Does not execute any page script in Safari/FF/Android and IOS 5(Iphone/Ipod)? -


i have page dependent upon scripts on page load(script internal , external). when page loads fine. when user click button, no script execute in safari, ff/ios 5(iphone/ipad/ipod) , andriod? working fine in modern browsers(chrome/ie)

addding line solve issue in browser except in ipod/iphone. how solve in ipod/iphone?

window.onunload = function () { }; 

i have found need use,

    window.onpageshow = function (event) {         if (event.persisted) {             //do work need in initialization         }     }; 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -