title: Prompt confirm before Leaving edited html form
body: <p>If user tries to leave unsaved edited form, a message box pop-up</p>
  
  <p>"This page is asking you to confirm that you want to leave - data you have entered may not be saved.
  Leave Page and Stay on Page"</p>
  
  <p>Can we invoke this confirmation box through some special function of browser? I want to implement it in AngularJS application</p>
  
  <p><img src="https://i.imgur.com/XEBG41d.png" alt="enter image description here"></p>