Dela via


WebView.NavigationCompleted Event

Definition

Occurs when the WebView has finished loading the current content or if navigation has failed.

// Register
event_token NavigationCompleted(TypedEventHandler<WebView, WebViewNavigationCompletedEventArgs const&> const& handler) const;

// Revoke with event_token
void NavigationCompleted(event_token const* cookie) const;

// Revoke with event_revoker
WebView::NavigationCompleted_revoker NavigationCompleted(auto_revoke_t, TypedEventHandler<WebView, WebViewNavigationCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView,WebViewNavigationCompletedEventArgs> NavigationCompleted;
function onNavigationCompleted(eventArgs) { /* Your code */ }
webView.addEventListener("navigationcompleted", onNavigationCompleted);
webView.removeEventListener("navigationcompleted", onNavigationCompleted);
- or -
webView.onnavigationcompleted = onNavigationCompleted;
Public Custom Event NavigationCompleted As TypedEventHandler(Of WebView, WebViewNavigationCompletedEventArgs) 
<WebView NavigationCompleted="eventhandler"/>

Event Type

Remarks

To determine whether navigation has failed, check the IsSuccess and WebErrorStatus properties of the WebViewNavigationCompletedEventArgs class.

WebView navigation events occur in the following order:

Similar events occur in the same order for each iframe in the WebView content:

Applies to

See also