javascript function call
<p>I have popup window which contains a preview button, on clicking it displays the preview of the document selected by the user. This pop up window is called from another page, <em>fileretension.aspx</em>. After preview, when the user clicks the close icon of popup window, it calls a function, <code>DeleteTempFiles</code>, on the parent page with the filename as the argument.  This is the line of code:</p>

<pre><code>window.opener.callBack("DeleteTempFiles('"+fileName+"');"); 
</code></pre>

<p>I stored the file name in a hidden variable in the popup window and got the value of <code>fileName</code> correctly, but JavaScript throws an error - <em>"Object doesn't support this property or method"</em>. </p>

<p>What could be the problem here, is this related to browser?  I used the same function in another page and it woks properly.</p>
