FMX.WebBrowser.TCustomWebBrowser.EvaluateJavaScript

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EvaluateJavaScript(const JavaScript: string); overload;
procedure EvaluateJavaScript(const AJavaScript: string; const AValueCallback: TJavaScriptResultCallback); overload;

C++

void __fastcall EvaluateJavaScript(const System::UnicodeString JavaScript)/* overload */;
void __fastcall EvaluateJavaScript(const System::UnicodeString AJavaScript, const _di_TJavaScriptResultCallback AValueCallback)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.WebBrowser.pas
FMX.WebBrowser.hpp
FMX.WebBrowser TCustomWebBrowser

Description

Adds your custom JavaScript to HTML page and immediately executes it.

To add a custom JavaScript to a page currently displayed within the TWebBrowser component, specify your script in the JavaScript string parameter, and then call this method.

See Also