NewWindow2 Event
Description
Fires when a new window is to be created.
Syntax
Public Event NewWindow2( _
ByRef ppDisp As Object, _
ByRef Cancel As Boolean _
)
Parameters
- ppDisp: Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded.
- Cancel: Boolean value to determine whether the current navigation should be canceled.
true: Cancel the navigation.false: Do not cancel the navigation.
Remarks
In Microsoft® Internet Explorer, the NewWindow2 event is not fired when the user selects Window from the New command on the File menu. This event precedes the creation of a new window from within the WebBrowser.
The NewWindow2 event is fired when a window is about to be created, such as during the following actions:
- The user clicks a link while pressing the SHIFT key.
- The user right-clicks a link and selects Open In New Window.
- The user selects New Window from the File menu.
- There is a targeted navigation to a frame name that does not yet exist.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.