title: javascript editing prompt
body: <p>I am creating a web application in which i have to show an editing prompt when user wants to navigate from the page.</p>
  
  <p>I want to only show this when users had edited some value on that page and he does not save the changes then the prompt will ask "Do you want to save the changes ?". Otherwise if he saved then the prompt does not appear.</p>
  
  <p>Editing prompt similar to MICROSOFT WORD/EXCEL to inform you that you are making changes and do you wish to proceed.</p>
  
  <p>please give solution swiftly?</p>