title: Back Button Does not execute any page script in Safari/FF/Android and IOS 5(Iphone/Ipod)?
body: <p>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)</p>
  
  <p>Addding this line will solve the issue in most browser except in Ipod/Iphone. How to solve this in Ipod/Iphone?</p>
  
  <pre><code>window.onunload = function () { };
  </code></pre>
  
  <p>I have found that I need to use,</p>
  
  <pre><code>    window.onpageshow = function (event) {
          if (event.persisted) {
              //Do my work which i need to do in initialization
          }
      };
  </code></pre>