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

SynchronousNo
BubblesNo
CancelableNo

 

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.
VBObject 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.

See also

InternetExplorer
WebBrowser

 

 

Community Additions

ADD
Show:
© 2014 Microsoft