IWebViewControl.FrameNavigationStarting 事件

定义

在 IWebViewControl 中的框架导航到新内容之前发生。

// Register
event_token FrameNavigationStarting(TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
IWebViewControl::FrameNavigationStarting_revoker FrameNavigationStarting(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs const&> const& handler) const;
event TypedEventHandler<IWebViewControl,WebViewControlNavigationStartingEventArgs> FrameNavigationStarting;
function onFrameNavigationStarting(eventArgs) { /* Your code */ }
iWebViewControl.addEventListener("framenavigationstarting", onFrameNavigationStarting);
iWebViewControl.removeEventListener("framenavigationstarting", onFrameNavigationStarting);
- or -
iWebViewControl.onframenavigationstarting = onFrameNavigationStarting;
Event FrameNavigationStarting As TypedEventHandler(Of IWebViewControl, WebViewControlNavigationStartingEventArgs) 

事件类型

注解

WebView 导航事件按以下顺序发生:

对于 WebView 内容中的每个 iframe,类似事件按相同的顺序发生:

适用于