Microsoft KB Archive/306673

= &quot;Permission Denied&quot; Error Message When You Access an HTML Element After Saving a File to a Disk =

Article ID: 306673

Article Last Modified on 9/12/2003

-

APPLIES TO


 * Microsoft Internet Explorer (Programming) 6.0
 * Microsoft Internet Explorer (Programming) 5.5 SP2

-



This article was previously published under Q306673



SYMPTOMS
Internet Explorer 5.5 Service Pack 1 and later versions display an &quot;Error on page/Permission denied&quot; script error message when you access HTML elements from a script. This error occurs under the following conditions:
 * Frames are being used.
 * The frame in which the script error occurs is being used to navigate to an URL that sends back a file by using a &quot;Content-Type&quot; and &quot;Content-Disposition&quot; header. Upon receiving the file, the user chooses to save the file to disk.



WORKAROUND
You can work around this issue by using a dedicated (hidden) IFRAME to navigate to the ASP page that sends back the file by using a &quot;Content-Type&quot; and &quot;Content-Disposition&quot; header:



=
file frame.htm   

  



   

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbfix kbie550presp2fix kbprb kbqfe KB306673

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.