MSWebViewPermissionRequested event
Collapse the table of content
Expand the table of content

webview.MSWebViewPermissionRequested event

Indicates that content in the WebView is trying to access functionality (such as geolocation, or pointer lock access) that normally requires end-user permissions.

Syntax


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
webview.addEventListener("MSWebViewPermissionRequested", handler);
webview.removeEventListener("MSWebViewPermissionRequested", handler);


Event information

SynchronousNo
BubblesYes
CancelableNo

 

Event handler parameters

eventInfo

Type: Event

An object that contains information about the event.

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