WA Execute JavaScript

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2


WA Execute JavaScript ({*; }object; jsCode) String

ParameterTypeDescription
**If specified, object is an object name (string)
If omitted, object is a variable
objectForm objectObject name (if * is specified) or
Variable (if * is omitted)
jsCodeStringJavaScript code
Function resultStringResult of execution

Description

The WA Execute JavaScript command executes, in the Web area designated by the * and object parameters, the JavaScript code passed in jsCode.

Under Mac OS, the command returns the result.

Under Windows, the command returns an empty string. Use the WA EXECUTE JAVASCRIPT FUNCTION command.

Example

This example of JavaScript code causes the previous URL to be displayed:

   $result:=WA Execute JavaScript(MyWArea;"history.back()")

See Also

WA EXECUTE JAVASCRIPT FUNCTION.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next