title: Perform action when browser tab is closed (Javascript)
body: <p>I would like to be able to perform some action when the browser window/tab is closed. This should be done using Javascript. Any suggestions?</p>