WebUIView.NewWindowRequested 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 a user performs an action in the control that causes content to be opened in a new window.
// 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
Event Type
Implements
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro