Hi,
I want to distinguish whether the tab closed by clicking X or by another action (clicking a link, or a button which close the current tab).
In Firefox - I followed the stack and saw that the function closing the tab (not by X) is called: onxblDOMWindowClose.
BUT in chrome - both cases's stack looks the same.
Is there any way I can know how the user close the current tab ?
I've googled this question in many versions, but didn't find any answer/work direction.
Any help will be appreciated.
Thanks.