Export (0) Print
Expand All
0 out of 5 rated this helpful - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.