title: Detecting all possible cases of page refresh
body: <p>I read these two questions:</p>
  
  <p><a href="https://stackoverflow.com/questions/14767136/how-can-i-detect-browser-tab-refresh-or-close-using-javascript">How can I detect browser tab refresh or close using javascript</a></p>
  
  <p>and</p>
  
  <p><a href="https://stackoverflow.com/questions/8013429/jquery-detect-page-refresh">How do I detect a page refresh using jquery?</a></p>
  
  <p>which suggest binding to <code>'onbeforeunload'</code> and also binding on <code>F5</code> and <code>Ctrl-R</code> key presses, which is good advice.</p>
  
  <p>However, most browsers have a refresh button on their address bars, like this in Chrome:</p>
  
  <p><a href="https://i.stack.imgur.com/LLuAK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LLuAK.png" alt="enter image description here"></a></p>
  
  <p>Question is: is it possible to detect and bind to refresh event of browser's address bar's refresh button?</p>