4D v13.4

WA Execute JavaScript

Home

 
4D v13.4
WA Execute JavaScript

WA Execute JavaScript 


 

WA Execute JavaScript ( {* ;} object ; jsCode ) -> Function result 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable
object  Form object in Object name (if * is specified) or Variable (if * is omitted)
jsCode  String in JavaScript code
Function result  String in Result of execution

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

Example  

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

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

 
PROPERTIES 

Product: 4D
Theme: Web Area
Number: 1029

Windows specific

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v11 SQL Release 2

 
SEE ALSO 

WA EXECUTE JAVASCRIPT FUNCTION