共用方式為


WebUIView.NewWindowRequested 事件

定義

發生于使用者在控制項中執行會導致新視窗中開啟內容的動作時。

// Register
event_token NewWindowRequested(TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebUIView::NewWindowRequested_revoker NewWindowRequested(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<IWebViewControl,WebViewControlNewWindowRequestedEventArgs> NewWindowRequested;
function onNewWindowRequested(eventArgs) { /* Your code */ }
webUIView.addEventListener("newwindowrequested", onNewWindowRequested);
webUIView.removeEventListener("newwindowrequested", onNewWindowRequested);
- or -
webUIView.onnewwindowrequested = onNewWindowRequested;
Public Custom Event NewWindowRequested As TypedEventHandler(Of IWebViewControl, WebViewControlNewWindowRequestedEventArgs) Implements NewWindowRequested

事件類型

實作

適用於