javascript - How to ask confirmation when closing a window? -


I want to pop up a message to confirm, if the user wants to leave the current page, just like Stackoverflow does what you are typing a question.

Can someone redirect me to a script or to a reply (on this site or elsewhere)?

Thank you

You handle window event and a confirmation message in the form of a string Need to return

will be on not work here


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -