EN
此内容没有您的语言版本,但有英语版本。

x-ms-webview.MSWebViewScriptNotify event

Applies to Windows and Windows Phone

Raised when a page inside the WebView element calls the window.external.notify method.

Syntax


<div data-win-control=".MSHTMLWebViewElement" data-win-options="{MSWebViewScriptNotify : handler}" />


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
x-ms-webview.addEventListener("mswebviewscriptnotify", handler);
x-ms-webview.removeEventListener("mswebviewscriptnotify", handler);


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

See also

x-ms-webview

 

 

显示:
© 2014 Microsoft