Javascript detect browser close
36909
How to capture the browser window close event?
113619
How to distinguish 'Window close button clicked (X)' vs. window.Close() in closing handler
45062
Crossbrowser onbeforeunload?
154457
Javascript - How to detect if document has loaded (IE 7/Firefox 3)
119917
Detect if a jQuery UI dialog box is open
112863
How to detect Safari, Chrome, IE, Firefox and Opera browser?
158092
I'd like to get a notification when a question that I've voted to close (but isn't closed yet) is edited
32067
How to auto close LWC quick action from JavaScript?
110940
How to capture a JFrame's close button click event?
51025
How to prevent closing browser window?
102569
When a user closes a , hide that  on all site pages
90535
Not checking close()'s return value: how serious, really?
129422
Rails Browser Detection Methods
155019
Keyboard shortcut for closing the current IE 8 window?
83649
Programmatically close aspx page from code behind
32860
How can I detect when the mouse leaves the window?
139749
Detecting the onload event of a window opened with window.open