Previous topicNext topic
Help > Methods >
AddScriptToExecuteOnDocumentCreated

AddScriptToExecuteOnDocumentCreated Method

Add the provided JavaScript to a list of scripts that should be run after the global object has been created, but before the HTML document has been parsed and before any other script included by the HTML document is run.

Syntax

object. AddScriptToExecuteOnDocumentCreated(JsCode As String)

The AddScriptToExecuteOnDocumentCreated method syntax has these parts:

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

Remarks