SHDocVw.TWebBrowser.OnNewWindow2
Delphi
property OnNewWindow2: TWebBrowserNewWindow2 read FOnNewWindow2 write FOnNewWindow2;
C++
__property TWebBrowserNewWindow2 OnNewWindow2 = {read=FOnNewWindow2, write=FOnNewWindow2};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | SHDocVw.pas SHDocVw.hpp |
SHDocVw | TWebBrowser |
Description
Occurs when a new, hidden, non-navigated Web browser window is needed.
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.