Call function in new window on load
<p>Is this possible?</p>

<pre><code>var win = window.open(url);

win.func = function() {
    win.someFunc();
    // ...
} 
</code></pre>

<p>Then I want <code>func</code> to be called, when <code>win</code>'s scripts and <strong>DOM</strong> is fully loaded. jQuery solution will be good too.</p>
