title: prevent OnBeforeUnload() event from happening in refresh/F5
body: <p>I'm using <code>onbeforeunload</code> event to perform operations during the closing page.<br>
  I do not want the event to happen in the case of <code>Refresh</code> / <kbd>F5</kbd>.</p>
  
  <p>Is there a way or other event to do this?</p>