RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebBrowser.OnNewWindow2 Event

Occurs when a new, hidden, non-navigated Web browser window is needed.

Pascal
property OnNewWindow2: TWebBrowserNewWindow2;
C++
__property TWebBrowserNewWindow2 OnNewWindow2;

Write an OnNewWindow2 to take specific action immediately before the Web browser creates a new window for displaying a resource. This window may be needed because the user shift-clicked on a link, the user right-clicked on a link and chose "open in new window", the frame for the target URL does not yet exist, or the Navigate or Navigate2 requested that the target document appear in a new window. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!