title: Detect Browser Refresh in Javascript
body: <p>I am curious if there is a way to detect the browser refresh event in javascript specifically. We are using the jQuery.address plugin to provide forward and back button functionality to AJAX functions. The problem I am facing is that this plugin does not seem to detect if the user has refreshed the page.</p>
  
  <p>This code is executed each time the user moves forward or back in the browser history. I would also like it to exexute when the user refreshes.</p>
  
  <pre><code> $.address.init(function(event) {
  }).change(function(event) {
  
          SummaryDiv.SwapPanels(newPanelID);
      }
  </code></pre>
  
  <p>Any ideas?</p>