Table of Contents

TTMSFNCWXContainer.ExecuteJavaScript Method

Runs the given JavaScript in the hosted page and optionally reports the result.

API unit family: TMSFNCWXContainer Declaring type: TTMSFNCWXContainer Inherited from: TTMSFNCWXCustomContainer

Syntax

procedure ExecuteJavaScript(AScript: String; ACompleteEvent: TTMSFNCWebBrowserJavaScriptCompleteEvent = nil; AImmediate: Boolean = False); override;

Parameters

Name Description
AScript The JavaScript source to execute.
ACompleteEvent An optional handler invoked with the result when execution completes.
AImmediate When True, runs the script immediately rather than queuing it.