I\'m working on a chat and I\'m trying to figure out how I can detect that the user has left the page or not. Almost everything is being handled by the database to avoid the fro
Try to add popup (prompt("leaving so early?")) after $.post. It may work. Tho it may be bad user experience. :)