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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -