Javascript: cross-domain window.close event from parent window
<p>For example i'm on domain1:</p>

<pre><code>a.click(function(){
  window.win=window.open(domain2,'name');
});
</code></pre>

<p>Now i'm on domain2 and i'm closing it. How does window.win will know that user closed that window? Is there any event or property to check via interval?</p>
