What is the best way to detect if a user leaves a web page?

The onunload JavaScript event doesn’t work every time (the HTTP request takes longer than the time required to terminate the browser).

Creating one will probably be blocked by current browsers.

9 Answers
9

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *