Article ID: 183048 - Last Review: May 11, 2006 - Revision: 3.0 PRB: Events Not Firing When IE4 WebBrowser Placed On Web PageThis article was previously published under Q183048 On This PageSYMPTOMS
WebBrowser events such as DocumentComplete, DownloadComplete,
BeforeNavigate2, and others do not fire when you host the WebBrowser
control in an HTML page under Internet Explorer 4.0x.
CAUSE
The WebBrowser ActiveX control is not designed to be used in an HTML OBJECT
tag.
RESOLUTION
Microsoft does not support use of the WebBrowser control in an HTML OBJECT
tag. Microsoft recommends using IFRAME or FRAMEs instead of embedding the
WebBrowser control in HTML.
STATUSThis behavior is by design. MORE INFORMATION
You cannot write Script event handlers for WebBrowser control events, such
as DocumentComplete, BeforeNavigate2, and other events, when you host the
WebBrowser control in an HTML page by using the OBJECT tag. These events are
not fired. These events are not fired even if the WebBrowser control is
wrapped in another ActiveX control and then embedded in HTML.
If the reason for hosting the WebBrowser control in an HTML page is to display documents within your Web page, Microsoft recommends that you use the IFRAME tag. Steps to Reproduce the Behavior
REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites: http://msdn.microsoft.com/ie/
(http://msdn.microsoft.com/ie/)
http://support.microsoft.com/iep (http://support.microsoft.com/iep) APPLIES TO
| Article Translations
|

Back to the top
