I have a popup made with:
var popup = window.open(URL, ...) //content of popup is not in my control
I want to know when the popup is closed, and thought the below code could help me.
$(popup).unload()
However, Firefox initiates the unload event when the popup appears, not when it's closed!
Is there a reliable way to know when a popup is closed, by the opener?
I don't particularly like polling the popup asking every (say) 500ms if it's closed...
(I found this solution on How to know when popup is closed in javascript)