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.
// 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:
- NavigationStarting
- ContentLoading
- DOMContentLoaded
- NavigationCompleted
Similar events occur in the same order for each iframe in the WebView content: