title: Unloading a window in Firefox
body: <p>I'm looking for a Firefox-specific way to unload the current window when the URL changes. If I don't unload the window, content doesn't load correctly when the user presses the 'Back' button. Internet Explorer displays the behavior I want - it loads things okay. So I don't want to add any code that breaks that. </p>
  
  <p>Here's the code I'm currently using:</p>
  
  <pre><code>if (typeof clientInformation == 'undefined') {
      window.addEventListener('unload', UnloadHandler, false);
  };  
  
  function UnloadHandler() {
      //do nothing
  };
  </code></pre>
  
  <p>Is this the best way to do this or are there easier ways?</p>