Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebView.NavigationCompleted Event

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?