Callback to parent window from child in IE?
<p>I have the code below which opens a child window and the child has a callback function to the parent to close the child window which is called with onLoad in the child.</p>

<p>The code works fine in Firefox and Chrome but not in IE. </p>

<p>Can anyone see where I am going wrong?</p>

<p>Parent JS</p>

<pre><code>    var wnd = null;
    function openWnd() 
    {
        wnd = window.open('http://www.example.com');
    }

    function closeWnd()
    {
        if (wnd != null) {
            wnd.close();
        }   
    }
</code></pre>

<p>Child JS</p>

<pre><code>    function parent_callback() 
    {
        setTimeout(function (){ window.opener.closeWnd();}, 3000);
    }
</code></pre>

<p>Why is IE always a pain for developers M$ needs to pull its fingure out :)</p>

<p>Thanks</p>
