Article ID: 251128 - Last Review: May 12, 2007 - Revision: 2.1 PRB: showModalDialog and showModelessDialog Do Not Fire NewWindow2
This article was previously published under Q251128 On This PageSYMPTOMS Calling showModalDialog or showModelessDialog does not fire
the NewWindow2 event. This applies to DWebBrowserEvents2::NewWindow2 as well as
its Microsoft Visual Basic equivalent, the NewWindow2 event for the WebBrowser
and InternetExplorer objects. CAUSE The NewWindow2 event is only fired when a new instance of
Internet Explorer is about to be created. The modal/modeless dialogs are not
new instances of Internet Explorer. They are implemented as MSHTML host
windows, allowing them to render and display HTML content (but not hyperlinks
between documents). Furthermore, they do not appear in the taskbar and are
closed whenever the window that created them is closed. STATUS This behavior is by design. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCES For additional information, please see the following MSDN
Web Workshop Web sites:
showModalDialog Method http://msdn2.microsoft.com/en-us/library/ms536759.aspx (http://msdn2.microsoft.com/en-us/library/ms536759.aspx) showModelessDialog Method http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodelessdialog.asp (http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodelessdialog.asp) NewWindow2 Event http://msdn.microsoft.com/workshop/browser/webbrowser/reference/events/NewWindow2.asp (http://msdn.microsoft.com/workshop/browser/webbrowser/reference/events/NewWindow2.asp) APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top
