MSWebViewNewWindowRequested event
Collapse the table of content
Expand the table of content

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:
© 2017 Microsoft