Detect Closed Windows
How to Detect if a JavaScript Window Open Is Closed?

Learn how to detect if a window opened via JavaScript is closed by monitoring the window.closed property with setInterval.