NewWindow event

Fires when a new window is to be created.


HTML Attribute <element NewWindow = "handler(event)">
attachEvent Method object.attachEvent("NewWindow", handler)


Event information

Synchronous No
Bubbles No
Cancelable No


Event handler parameters

ppDisp [in, out, ref]

C++ An interface pointer that, optionally, receives the IDispatch interface pointer of a new WebBrowser object or an InternetExplorer object.
VB Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded.

Cancel [in, out, ref]

Type: Boolean

A Boolean value that determines whether the current navigation should be canceled.


Cancel the navigation.


Do not cancel the navigation.


This event is obsolete. Use the NewWindow2 event instead.