I noticed on few sites, if the process is not finished and in between user wants to leave the page then the browser shows this warning.
Are you sure you want to leave this page?
Have you saved your files?
[Leave this page] [Stay on this page]
I saw this in the IE but crome also does the same job.
I have asp.net page which has log form which user needs to fill.
I also need to stop user by showing this same message when he tries leave the page without saving the changes first.
how can I do this?