Navigate

Description

Browses the specified Web page.

Applies to

WebBrowser control

Syntax

controlname.Navigate ( string url )

Argument

Description

controlname

The name of the WebBrowser control.

url

The address of the page to browse.


Return value

Integer.

  • 1 -- Success.

  • -1 -- General error.

  • -2 -- Failed to get the browser instance.

  • -5 -- Invalid URL.

Examples

This example navigates to the Appeon website:

Integer li_rtn
li_rtn = wb_1.Navigate("http://www.appeon.com")

See also

CancelDownload

EvaluateJavascriptAsync

EvaluateJavascriptSync

GetSource

GoBack

GoForward

PrintAsPDF

PauseDownload

RegisterEvent

ResumeDownload

Refresh

StopNavigation

UnregisterEvent

Zoom