Is it possible to access the DOM inside an opened javascript window?
<p>With javascript, I can open and close a popup window as follows.</p>

<pre><code>var myWindow = window.open('http://example.org/');
// do things to window.
myWindow.close();
</code></pre>

<p>How do I manipulate the DOM elements of the page in the popup window before closing it? I have tried </p>

<pre><code>myWindow.onready = function() {
    myWindow.document.getElementById('someElementID').style.color = '#f00';
}
</code></pre>

<p>to no avail.</p>
