NewWindow event

Fires when a new window is to be created.

Syntax

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.

VARIANT_TRUE (true)

Cancel the navigation.

VARIANT_FALSE (false)

Do not cancel the navigation.

Remarks

This event is obsolete. Use the NewWindow2 event instead.