82
rated 0 times
[
84]
[
2]
/ answers: 1 / hits: 37986
/ 15 Years ago, tue, august 11, 2009, 12:00:00
I open a new window using the following code:
purchaseWin = window.open(Purchase.aspx,purchaseWin2, location=0,status=0,scrollbars=0,width=700,height=400);
I want to access the dom tree of the purchaseWin, e.g.
purchaseWin.document.getElementById(tdProduct).innerHTML = 2;
It doesn't work. I can only do this:
purchaseWin.document.write(abc);
I also try this and it doesn't work too:
$(purchaseWin.document).ready(function(){
purchaseWin.$(#tdProduct).html(2);
});
What should I do?
More From » javascript