How to detect whether a browser has been closed, a tab has been closed and which tab amongst all the opened tabs has been closed ? Are there any events available to handle each one of the above cases in Angular/Javascript. Any information or sample code will be helpful and appreciated. Thanks!