Why won't this Javascript code execute in Firefox & Chrome?
<p>I have this set of Javascript code that works fine in IE (any version), but won't work on Mozilla Firefox or Google Chrome. Can someone advise me why?</p>

<pre><code>function returnData(strCode,strProgramCode,strName)
    {           
        parent.opener.document.all.txtCourseCode[7].value = strCode;      
        parent.opener.document.all.txtProgram[7].value = strProgramCode;                                                
        parent.opener.document.getElementById("txtCourseName8").innerHTML = strName;                

        window.close()
}
</code></pre>

<p>FYI, this Javascript is embedded into a .aspx page that was written using .NET Framework 1.1.</p>

<p><strong>Edit</strong> Doesn't work means: none of the lines executed although they were explicitly invoked.</p>

<p>Example: <code>window.close()</code> doesn't close the window</p>
