NavigationProgressIndex

Description

Occurs when the overall page loading progress changes.

Event ID

Event ID

Objects

None

WebBrowser controls


Arguments

Argument

Description

progressIndex

The page loading progress.


Return Values

None

Usage

The NavigationProgressIndex event will be triggered for uncertain times even if the page has been 100% loaded.

The NavigationProgressIndex event will be triggered if the page's URL has changed.

As the Navigate function is executed asynchronously, it is recommended that you use the NavigationProgressIndex event to determine whether the Navigate function is completed before executing the next script. You can check the value of the NavigationProgressIndex event, and if the event receives the value of 100, it means the page is 100% loaded. But if the page to be loaded is complicated (such as loading multiple frames, embedding large amount of data, associating and accessing data from other websites, having complex logics or deep hierarchical structure etc.), the value of 100 may not indicate that the page is completely loaded. In such case, you can consider using Yield and Sleep functions to delay executing the next script. See the Navigate function for code examples.

See also

AddressChanged

CertificateError

DownloadingStart

DownloadingStateChanged

EvaluateJavascriptFinished

NavigationError

NavigationStart

NavigationStateChanged

PdfPrintFinished

ResourceRedirect

TitleTextChanged