title: Preventing Firefox reload confirmation
body: <p>I'm displaying certain records in an editable table. The user when attempts to reload the table while editing a record a pop up comes warning the record about the unsaved data.</p>
  
  <pre><code>function cancelProcess()
  {
      if(noEditedRecords !=0)//number of edited records in the table
      {
          var processConfirmation = confirm("You've Edited "+ noEditedRecords +" Records. Are You sure to undo the Changes made?");
  
          if (processConfirmation ==true){
              window.onbeforeunload = null;
              window.location.reload();
          }
      }
  }
  </code></pre>
  
  <p>When he clicks OK to reload the page, Firefox prompts as </p>
  
  <blockquote>
    <p>To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.</p>
  </blockquote>
  
  <p>And when opening the same page in Chrome, no such prompt appears.</p>
  
  <p>I tried to avoid this by setting <code>window.onbeforeunload = null;</code>, but still the prompt window appears there.</p>
  
  <p>Also I tried by changing Firefox configuration:</p>
  
  <p><code>browser.sessionstore.postdata</code></p>
  
  <p><em>Changed 0 to 1</em> as suggested in Mozilla support page.</p>
  
  <p>But nothing worked.. How do I prevent the prompt?</p>