I want to pop up a message asking for confirmation if the user wants to leave the current page, exactly like stackoverflow does it when you are typing a question.
Could someone help me on this, by giving me a script or redirecting me to an answer (on this site or elsewhere) ?
Thanks
See Question&Answers more detail:os