Table of Contents

TTMSFNCEdgeWebBrowser.ExecuteJavaScriptSync Method

Executes a JavaScript expression synchronously and returns the result as a string.

API unit family: TMSFNCEdgeWebBrowser Declaring type: TTMSFNCEdgeWebBrowser

Syntax

function ExecuteJavaScriptSync(AScript: string): string; override;

Parameters

Name Description
AScript JavaScript code to execute.

Returns

String representation of the script return value, or an empty string on failure.