title: Confirmation on browsers back button
body: <p>I need to control over back button. I checked similar posts it wont work as i expect.</p>
  
  <p>I need to show custom confirmation message on back button clicked. If uses clicks 'Cancel', then they should stay on the same page.</p>
  
  <p>Can anyone has ready sample code?</p>
  
  <p>Thanks</p>