Previous topicNext topic
Help > Events >
BeforeNavigate

BeforeNavigate Event

Fired before the navigation request. Allows to cancel navigation based on the requested URL.

Syntax

Private Sub object_BeforeNavigate(URI As String, Cancel As String)

The BeforeNavigate event syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
URI String. the URL to which the control should navigate
Cancel Boolean. if TRUE, the navigation is aborted

Remarks     

  • BeforeNavigate is triggered at the start of the Navigate method, before calling the Webview2 component