How to determine if the browser window is closed?

How to determine if the browser window is closed? I open a web page from my site in a new browser window.

I know that people usually use the unload event, but the browser window that I open is a page that is not part of my website (e.g. www.google.com).

Is there any way to detect this?

+5
source share

Source: https://habr.com/ru/post/1233702/


All Articles