Is there any way of knowing if the user closes a tab in a web browser? Specifically IE7, but also FireFox and others as well. I would like to be able to handle this situatio
Attach an "onbeforeunload" event. It can execute code just before the browser/tab closes.