Export (0) Print
Expand All

WebBrowserControl.BeforeNavigate2 Event (Access)

Occurs before navigation occurs in the given WebBrowserControl.

Version Added: Access 2010

expression .BeforeNavigate2(pDisp, URL, flags, TargetFrameName, PostData, Headers, Cancel)

expression A variable that represents a WebBrowserControl object.

Parameters

Name

Required/Optional

Data Type

Description

pDisp

Required

Object

A pointer to the IDispatch interface for the WebBrowser object that represents the window or frame.

URL

Required

Variant

Contains the URL to be navigated to.

flags

Required

Variant

Reserved. Must be set to NULL.

TargetFrameName

Required

Variant

Contains the name of the frame in which to display the resource, or NULL if no named frame is targeted for the resource.

PostData

Required

Variant

Contains the data to send to the server, if the HTTP POST transaction is used.

Headers

Required

Variant

Contains additional HTTP headers to send to the server (HTTP URLs only). The headers can specify information, such as the action required of the server, the type of data being passed to the server, or a status code.

Cancel

Required

Boolean

Contains the cancel flag. Set to True to cancel the navigation operation.

Show:
© 2015 Microsoft