Javascript - accessing global vars from a child window
<p>When a window opens a child window with</p>

<pre><code>    var someVar = "someValue";
    newWin = window.open("somepage.html","","");
</code></pre>

<p>The child window can access the parent's global variables</p>

<pre><code>    var x = window.opener.someVar;
    alert(x);
</code></pre>

<p>This works fine (child alerts "someValue") in Firefox 18, IE6, IE7, Opera 11.52, Safari 5.1.1  But it fails in Chrome 24.0 (and maybe newer Safaris too?), when it alerts "undefined".</p>

<p>Yikes!  Anyone else experience this?  Any workarounds?</p>

<hr>

<p>In the past, I have been able to access global vars either direction, and execute functions in the other window too.  I'd hate to see this functionality going away.
Dave</p>
