Arbortext Command Language > Commands > js
  
js
jsJavaScript-expression
This command passes JavaScript-expression to the JavaScript interpreter. The JavaScript expression is passed as a single string argument to the javascript function or the jscript function (depending on the set javascriptinterpreter setting) for evaluation. Unlike other ACL commands, no variable substitution is performed.
* 
A semicolon is considered part of the JavaScript expression and does not terminate the command.
If JavaScript returns a non-null defined result, it is displayed in the status line in the Edit pane. The JavaScript expression is evaluated in the global shared scope.
For example,
js Application.activeDocument.documentElement.tagName
js print("Hello" + " world!")
js Application.alert("Hello world!")
Related Topics
javascript function
js_source function
jscript function
source command
set javascriptinterpreter