javascript - onclose/onunload in a new window (window.open) for external url -


is there way capture event onclose of window? trying auth user on twitter popup. , reject request/promise if user close window.

the problem onclose not exists , onunload works on urls of same domain. have tried iframe, twitter not allow that.

no., there no event capturing window close event.

try using window.unload(function(){}) in current page.

above event triggered while refreshing page or navigating current page.


Comments