OnBeforeNavigate Event (ALog)

Occurs before navigation executed

Syntax

Object.OnBeforeNavigate ( pDisp, pvURL, pvFlags, pvTargetFrameName, pvPostData, pvHeaders, bCancel )

The OnBeforeNavigate event syntax has the following parts:

 

Name

Type

Description

Object

ALog

ALog control

pDisp

Val Object

Address of the frame's object interface.

pvURL

Var Variant

URL to be navigated to.

pvFlags

Var Variant

Reserved for future use.

pvTargetFrameName

Var Variant

String that contains the name of the frame in which to display the resource, or Nothing if no named frame is targeted for the resource.

pvPostData

Var Variant

Address of data to send to the server if the HTTP POST transaction is being used.

pvHeaders

Var Variant

Additional HTTP headers to send to the server (HTTP URLs only). The headers can specify things like the action required of the server, the type of data being passed to the server, or a status code.

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:

 

True

Cancels the navigation.

False *

Allows the navigation to proceed.

Comments

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

Applies to

ALog

See Also

OnNavigateComplete,  LocationURL, Navigate