version 11.2
WA Execute JavaScript ({*; }object; jsCode) String
Parameter | Type | Description | |
* | * | If specified, object is an object name (string) | |
If omitted, object is a variable | |||
object | Form object | Object name (if * is specified) or | |
Variable (if * is omitted) | |||
jsCode | String | JavaScript code | |
Function result | String | Result 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.