Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

NewWindow2 event

Fires when a new window is to be created.

Syntax

HTML Attribute <element NewWindow2 = "handler(event)">
attachEvent Method object.attachEvent("NewWindow2", 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 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

Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2) or later. NewWindow3 is raised instead of this event. The usage notes for NewWindow3 also apply to this event.

See also

InternetExplorer
WebBrowser
Reference
NavigateComplete2
NewWindow3

 

 

Community Additions

ADD
Show:
© 2015 Microsoft