HTMLViewer.ExecuteJavaScriptSync
From Xojo Documentation
Method
HTMLViewer.ExecuteJavaScriptSync(js As String) As Variant
New in 2020r1
Supported for all project types and targets.
New in 2020r1
Supported for all project types and targets.
Synchronously executes the passed JavaScript in the context of the currently loaded page and returns the result. Only strings and numbers may be returned.
Notes
Attempting to execute JavaScript before the page finishes loading (or if no page is loaded) is undefined and is unlikely to work.
In order to call JavaScript on Windows using the Native renderer, a document must already be loaded into the HTMLViewer. If no document is loaded, an HTMLViewerException is raised.
See Also
ExecuteJavaScript method.