PRB: Permission Denied Accessing Web Browser Control in HTML (176789)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
This article was previously published under Q176789 SYMPTOMS
When scripting a WebBrowser control that has been embedded in an HTML page,
attempts to use any standard WebBrowser Control methods or properties fail
with a "Permission Denied" scripting error.
CAUSE
Because of cross-frame security restrictions, any attempt to access the
WebBrowser control from script automatically fails after the control has
been set to browse a page in a different security context from the page
hosting the control.
RESOLUTION
Replace any references to the WebBrowser control with an IFRAME tag. The
IFRAME, for all intents and purposes, functions in the same manner as the
WebBrowser control and can be positioned on a page. See the MORE
INFORMATION below for an example of how to do this.
STATUS
This behavior is by design.
REFERENCES
For additional information about Cross-Frame Security, please see the
following article in the Microsoft Knowledge Base:
167796 "Permission Denied" When Scripting Across Frames
Modification Type: | Minor | Last Reviewed: | 3/16/2005 |
---|
Keywords: | kbDSupport kbFAQ kbprb kbWebBrowser KB176789 |
---|
|