how to close a browser having pdf inside it
<p>i have an browser with pdf which is opened on clicking "viewPDF" button in the main page of an asp.net and c#.net application.</p>

<p>On clicking the "viewPdf" button i am opening the pdf in the browser using the javascript as below:</p>

<pre><code>&lt;script language="javascript"&gt;
    function openpdf()
    {
        var  pdfobj= window.open('epcrpdf.aspx');
    }
&lt;/script&gt;
</code></pre>

<p>in the design page.</p>

<pre><code>&lt;input id="btnTakeAction"
       class="Button" 
       type="button" value="View Pdf" 
       onclick="javscript:openpdf();"&gt;
</code></pre>

<p>The problem is i also have a log out button in the mainpage, on cliking the log out button i have to close the childwindows like the browser containing pdf.</p>

<p>when i try to close the browser containing using javscript as below i face a problem of "Access is denied".</p>

<pre><code>pdfobj.close();
</code></pre>

<p>but other browsers which does not contain pdf gets closed with out any error message.</p>
