NavigationStart

Description

Occurs after a navigation has been committed and before the browser begins loading contents in the frame. The event will also be triggered if HTTP redirection occurs. During a complete navigation process, this event can be triggered multiple times. However, if navigating to a fragment within the same document, this event will not be triggered. The normal order of navigation events is as follows:

  1. NavigationStart

  2. AddressChange

  3. ContentLoading

  4. HistoryChanged

  5. DomContentLoaded

  6. NavigationCompleted

In order to ensure compatibility, the ResourceRedirect and NavigationError events are kept unchanged. But if there is a redirection, the NavigationStart event is triggered first, and then the ResourceRedirect event is triggered.

Syntax

NavigationStart (boolean isRedirected, string requestHeaders, string uri)

Event ID

Event ID

Objects

None

WebBrowser controls


Arguments

Argument

Description

IsRedirected

Whether the navigation is redirected.

TRUE indicates the navigation is redirected.

FALSE indicates the navigation is not redirected.

requestHeaders

The HTTP headers in the navigation request.

uri

The address of the web page to navigate to.


Return Values

None

See also

AddressChange

CertificateError

DownloadingStart

DownloadingStateChanged

EvaluateJavascriptFinished

NavigationError

NavigationProgressIndex

NavigationStateChanged

PdfPrintFinished

ResourceRedirect

TitleTextChanged