I do not think that you can receive an event because you cannot communicate with the document itself when the URL belongs to another domain. However, you can poll and check the "closed" property of the window object:
var w = window.open("http://what.ever.com", "OtherWindow"); setTimeout(function() { if (w.closed) {
You can also start the interval timer if you want:
var w = window.open("http://what.ever.com", "OtherWindow"); var interval = setInterval(function() { if (w.closed) {
source share