title: Chrome V80 features to be deprecated
body: <p>Starting from Chrome V80, few events like beforeunload, unload etc are getting deprecated. How would we handle such existing events further in JavaScript?</p>
  
  <p>My requirement is to alert when user tries to refresh / reload the page (F5 or ctrl+r) or browser back button, I need to alert and on confirmation, I need to reload or move back. This is in JSF2.2</p>
  
  <p>But the behavior should not effect the functioning in other browsers.</p>
  
  <p>Can someone please help me with this</p>