OnNewWindow Event (ALog)

Notifies an application when a new window is to be created for displaying a resource.

Syntax

Object.OnNewWindow ( pDisp, bCancel )

The OnNewWindow event syntax has the following parts:

 

Name

Type

Description

Object

ALog

ALog control

pDisp

Var Object

The new WebBrowser or InternetExplorer object.

bCancel

Var Bool

A cancel flag. An application can set this parameter to True to cancel the navigation operation, or to False to allow it to proceed.

Where

bCancel can have one of the following values:

 

Value

Description

True

The new window should not be created.

False *

The new windows should be allowed to create the new window.

Comments

This event precedes the creation of a new window from within the WebBrowser (for example, in response to a navigation targeted to a new window, or to a scripted window.open method).

For more information on the ALog control, see the Microsoft WebBrowser control documentation in the Microsoft web site.

Applies to

ALog

See Also

OnNavigateComplete