NotifyEventArgs NotifyEventArgs NotifyEventArgs NotifyEventArgs Class


Provides data for the ScriptNotify event.

public : sealed class NotifyEventArgs : INotifyEventArgs, INotifyEventArgs2public sealed class NotifyEventArgs : INotifyEventArgs, INotifyEventArgs2Public NotInheritable Class NotifyEventArgs Implements INotifyEventArgs, INotifyEventArgs2// This API is not available in Javascript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


The following code example demonstrates the use of the ScriptNotify event in apps compiled for Windows 8. Starting with Windows 8.1, omit the lines related to AllowedScriptNotifyUris. For more info, see the WebView class overview.

public MyPage()
    MyWebView.ScriptNotify += MyWebView_ScriptNotify;

    // Here we have to set the AllowedScriptNotifyUri property because we are 
    // navigating to some site where we don't own the content and we want to 
    // allow window.external.notify() to pass data back to the app.
    List<Uri> allowedUris = new List<Uri>();
    allowedUris.Add(new Uri(""));
    MyWebView.AllowedScriptNotifyUris = allowedUris;

void MyWebView_ScriptNotify(object sender, NotifyEventArgs e)
    // Respond to the script notification.


CallingUri CallingUri CallingUri CallingUri

Gets the Uniform Resource Identifier (URI) of the page containing the script that raised the ScriptNotify event.

public : Uri CallingUri { get; }public Uri CallingUri { get; }Public ReadOnly Property CallingUri As Uri// This API is not available in Javascript.
Uri Uri Uri Uri

The Uniform Resource Identifier (URI) of the page that raised the event.

Value Value Value Value

Gets the method name as passed to the application.

public : PlatForm::String Value { get; }public string Value { get; }Public ReadOnly Property Value As string// This API is not available in Javascript.
PlatForm::String string string string

The JavaScript method name.