Previous topicNext topic
Help > Events >
NavigationStarting

NavigationStarting Event

raised when the WebView main frame is requesting permission to navigate to a different URI.

Syntax

Private Sub object_NavigationStarting(IsUserInitiated As Boolean, IsRedirected As Boolean,URI As String, Cancel As String)

The NavigationStarting event syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
IsUserInitiated Boolean.  TRUE when the new window request was initiated through a user gesture.
IsRedirected

Boolean.  TRUE when the navigation is redirected

URI String. the URL to which the control should navigate
Cancel Boolean. if set to TRUE, the navigation is aborted

Remarks     

  • NavigationStarting is triggered each time the Webview2 component is asked to change its URL