Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 918 Bytes

webview_invokescript_1786819783.md

File metadata and controls

34 lines (24 loc) · 918 Bytes
-api-id -api-type
M:Windows.UI.Xaml.Controls.WebView.InvokeScript(System.String,System.String[])
winrt method

Windows.UI.Xaml.Controls.WebView.InvokeScript

-description

Note

InvokeScript may be altered or unavailable for releases after Windows 8.1. Instead, use InvokeScriptAsync.

Executes the specified script function from the currently loaded HTML, with specific arguments.

-parameters

-param scriptName

The name of the script function to invoke.

-param arguments

A string array that packages arguments to the script function.

-returns

The result of the script invocation.

-remarks

The invoked script can return only string values.

-examples

-see-also

InvokeScriptAsync