Programmer's Guide > Using the AOM > Using JavaScript to Access the AOM > JavaScript Global Objects
  
JavaScript Global Objects
The Arbortext JavaScript implementation provides several global objects available to all JavaScript scripts. The Application and Acl objects are instances of the AOM Application and Acl interfaces. Only one object for each interface exists in a Arbortext Editor or Arbortext PE sub-process session.
Object
Description
Application
This global object implements the Application interface that provides access to all other DOM and AOM objects except for the Acl interface.
Acl
This global object implements the Acl interface that provides access to ACL (Arbortext Command Language).
AclException
This is an instance of the class AclException, raised by some Acl interface methods.
DOMException
This is an instance of the class DOMException, raised by some DOM interface methods.
EventException
This is an instance of the class EventException, raised by some DOM Event interface methods.
RangeException
This is an instance of the class RangeException, raised by some DOM Range interface methods.
TableException
This is an instance of the class TableException, raised by some Table interface methods.
WindowException
This is an instance of the class WindowException, raised by some UI interface methods.
arguments
This global array contains the arguments passed to the js_source ACL function as the args parameter. The array will have zero length if no arguments were passed, or if the JavaScript code was executed by the javascript ACL function.
environment
This global object provides access to Java System properties. Accessing an environment property name results in a call to java.lang.System.getProperty("name").
Setting a property name to value results in a call to java.lang.System.getProperties().put("name", "value").
For example:
environment["user.dir"] = "c:\\temp"
changes the java user directory system property.