WebBrowserControl.BeforeNavigate2 event (Access)

Occurs before navigation occurs in the given WebBrowserControl.

Syntax

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 WebBrowserControl 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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.