Calling function passed to child window, relative to child window
<p>I've tried almost everything to get this to work.  It is really best explained with excerpts from the code.</p>

<pre><code>function loadWindow() {

var newWin = window.open("","win_1","");        
newWin.newObject = new tableObject(function(){window.document.write('test');});
newWin.document.close();
}
</code></pre>

<p>There is code written, not displayed to make it more readable, but it writes more html to the child page.  </p>

<p>Part of what it writes in the second page is <code>onMouseDown='newObject.next();'</code> which is passed to the tableObject by the constructor <code>function tableObject(nextClick) {this.next = nextClick}</code>.</p>

<p>when I call the function it causes an error, but does write test to the parent window, not the child.</p>

<p>I would like it to write to the child and not causes any error :-/.  </p>

<p>I have been working on this for days, and would be very thankful for any help. If you need any more of my code visible, let me know. </p>
