Information
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

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: Event

An object that contains information about the event. Implements the NavigationEvent interface and additionally exposes the following property:

PropertyDescription
referrerGets 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

webview

 

 

Show: