title: How to get "Confirm form resubmission" when user trying to refresh browser
body: <p>I have a page that doesn't allow user to refresh the page by clicking browser refresh button or pressing F5. So I want to simulate 'form resubmission' in order to show prompt message. </p>
  
  <p>can someone guide me an approach to implement it? </p>
  
  <p>Is there any cross-browser solution available for that?</p>