Share via


WebView2CompositionControl.ExecuteScriptAsync(String) Method

Definition

Executes JavaScript code from the javaScript parameter in the current top level document rendered in the WebView. Equivalent to calling ExecuteScriptAsync(String).

public System.Threading.Tasks.Task<string> ExecuteScriptAsync (string javaScript);
abstract member ExecuteScriptAsync : string -> System.Threading.Tasks.Task<string>
override this.ExecuteScriptAsync : string -> System.Threading.Tasks.Task<string>
Public Function ExecuteScriptAsync (javaScript As String) As Task(Of String)

Parameters

javaScript
String

Returns

Implements

Applies to