Previous topicNext topic
Help > Methods >
ExecuteScript

ExecuteScript Method

Run JavaScript code from the javascript parameter in the current top-level document rendered in the WebView2.

Syntax

object. ExecuteScript(JsCode As String)

The ExecuteScript method syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
JsCode String , JavaScript code to execute