Skip to content

Navigate - cWebView2Browser

Initiates a browser navigation to the provided URL

Type: Procedure

Parameters

Parameter Type Description
sUrl String String URL to navigate to

Syntax

Procedure Navigate String sUrl

Call Example

Send Navigate sUrl

Description

Initiates a browser navigation to the provided URL.

This procedure works asynchronously and will return immediately.

The navigation process will trigger several events, see OnNavigationStarting for an overview.

Note that this procedure can only be used after the control is created, use OnCreate to perform a navigation immediately.

Alternatively, psLocationURL can be used to set the initial URL to be loaded.

Sample

The example below shows how Navigate can be used from OnCreate:

Object oWebView2Browser is a cWebView2Browser
    Set Size to 87 250
    Set Location to 0 0
    Set peAnchors to anAll

    Procedure OnCreate
        Forward Send OnCreate

        Send Navigate "https://support.dataaccess.com"
    End_Procedure
End_Object