Delen via


WebView.ContentLoading Event

Definition

Occurs when the WebView has started loading new content.

// Register
event_token ContentLoading(TypedEventHandler<WebView, WebViewContentLoadingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebView::ContentLoading_revoker ContentLoading(auto_revoke_t, TypedEventHandler<WebView, WebViewContentLoadingEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView,WebViewContentLoadingEventArgs> ContentLoading;
function onContentLoading(eventArgs) { /* Your code */ }
webView.addEventListener("contentloading", onContentLoading);
webView.removeEventListener("contentloading", onContentLoading);
- or -
webView.oncontentloading = onContentLoading;
Public Custom Event ContentLoading As TypedEventHandler(Of WebView, WebViewContentLoadingEventArgs) 
<WebView ContentLoading="eventhandler"/>

Event Type

Remarks

WebView navigation events occur in the following order:

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

Applies to