title: window.performance.navigation.type works in IE and Firefox but NOT in CHROME
body: <p>I have been trying to implement a functionality when the page refreshes. I figured that value of</p>
  
  <pre><code>    window.performance.navigation.type 
  </code></pre>
  
  <p>turns 1 if the page reloads else, it is 0. I created an alert message on page load and the values are correct for IE and Firefox but it remains "0" for Chrome throughout no matter how many times the page reloads. I have also tried windows.onbeforeunload as per other stackoverflow answers but nothing seems to work!</p>
  
  <p>How do I resolve this?</p>
  
  <p>OR </p>
  
  <p>Is there another way to detect a page reload that works on all the browsers?</p>
  
  <p>Thanks!</p>