How can I access the dom tree of child window?
<p>I open a new window using the following code:</p>

<pre><code>purchaseWin = window.open("Purchase.aspx","purchaseWin2", "location=0,status=0,scrollbars=0,width=700,height=400");
</code></pre>

<p>I want to access the dom tree of the purchaseWin, e.g.         </p>

<pre><code>purchaseWin.document.getElementById("tdProduct").innerHTML = "2";
</code></pre>

<p>It doesn't work. I can only do this:</p>

<pre><code>purchaseWin.document.write("abc");
</code></pre>

<p>I also try this and it doesn't work too:</p>

<pre><code> $(purchaseWin.document).ready(function(){

     purchaseWin.$("#tdProduct").html("2");

   });
</code></pre>

<p>What should I do?</p>
