The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
webview.MSWebViewNewWindowRequested event
Raised when content in WebView is trying to open a new window.
Syntax
function handler(eventInfo) { /* Your code */ } // addEventListener syntax webview.addEventListener("MSWebViewNewWindowRequested", handler); webview.removeEventListener("MSWebViewNewWindowRequested", handler);
Event information
| Synchronous | No |
|---|---|
| Bubbles | Yes |
| Cancelable | Yes |
Event handler parameters
- eventInfo
-
Type: Event
An object that contains information about the event. Implements the NavigationEvent interface and additionally exposes the following property:
Property Description referrer Gets the Uniform Resource Identifier (URI) of the page in the WebView that is requesting a new window.
Requirements
|
Minimum supported client |
Windows 10 [Windows Store apps only] |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
None supported |
See also
Show: