I want a script to start when either of these things happen:
1) The user closes this tab.
2) The user closes this instance of their browser.
How can I do that? I found a list of javascript events( Unfortunately, I don't see anything like "onTabClose" or "onBrowserQuit".
1) The user closes this tab.
2) The user closes this instance of their browser.
How can I do that? I found a list of javascript events( Unfortunately, I don't see anything like "onTabClose" or "onBrowserQuit".