title: How to find whether the user clicks browser back button or Refresh button
body: <p>I need to find whether the user clicking the browser back button or Refresh button.</p>
  
  <p>I need to redirect the page to Error page when he clicks the back or refresh button. How to do this.</p>
  
  <p>I need to do this in javascript for my ASP.net page</p>