Article ID: 816885
When you read certain properties of the Location object that is inside an HTML Application (HTA), you may receive a "Permission denied" error message. The relevant properties of the Location object include:
If debugging tools are installed on your computer, you may receive an error message that is similar to the following:
If debugging tools are not installed on your computer, you may receive an error message that is similar to the following:
A Runtime Error has occurred. Do you wish to Debug? Line 12 Error: Permission denied
Note You may notice this problem only if your automatic configuration script has the DIRECT value.
An error has occurred in the script on this page. Line: 13 Char: 2 Error: Permission denied Code: 0 URL: http://WebServer/FileName.hta Do you want to continue running scripts on this page?
To resolve this problem, use any of the following methods:
Note The following methods are based on the sample that is mentioned in the "More Information" section of this article. Therefore, the code and the file names in these methods may differ from your code and from your file names.
Steps to reproduce the behavior
For more information, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms536496.aspxFor additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/314209/ )You cannot access the Location object of the parent from a child window
Article ID: 816885 - Last Review: September 22, 2011 - Revision: 3.0
Contact us for more help