Goal: From window A, I want to manipulate the DOM of window B, where
window B is the result of calling window.open().

My attempts are shown below, but Window B is never updated.

winRef = window.open("","Window B");

Try 1:
$(winRef).find("body").append("<div id=container>mr container</div>");

Try 2:
$(winRef).find("body").html("<div id=container>mr container</div>");

Try 3:
$(winRef.document.body).append("<div id=container>mr container</
div>");

Try 4:
$(winRef.document.body).html("<div id=container>mr container</div>");

The jQuery Core doc (http://docs.jquery.com/Core/jQuery#elements)
claims that it can wrap a window object.
Browser is FF2.0

Any tip is greatly appreciated, even if "that's impossible".

Reply via email to