TTMSFNCWebBrowser.ExecuteJavaScript Method
Executes a JavaScript expression in the current page context.
API unit family: TMSFNCWebBrowser
Declaring type: TTMSFNCWebBrowser
Syntax
procedure ExecuteJavaScript(AScript: String; ACompleteEvent: TTMSFNCWebBrowserJavaScriptCompleteEvent = nil; AImmediate: Boolean = False); override;
Parameters
| Name | Description |
|---|---|
AScript |
JavaScript source to execute. |
ACompleteEvent |
Optional callback invoked with the string result when execution completes. |
AImmediate |
When True, executes the script immediately without queuing; useful before the page is fully loaded. |