1 out of 3 rated this helpful - Rate this topic

NewWindow2 Event

Fires when a new window is to be created.

Syntax

        Private Sub object_NewWindow2( _
	ByRef ppDisp As Object, _
	ByRef Cancel As Boolean)

Parameters

object
Object expression that resolves to the objects in the Applies To list.
ppDisp
Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded.
Cancel
A Boolean value that determines whether the current navigation should be canceled.

true
Cancel the navigation.
false
Do not cancel the navigation.

Error Codes

No return value.

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.

Applies To

InternetExplorer, WebBrowser

See Also

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.