Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Sub-Process > Writing Arbortext PE Applications in JavaScript > Sample JavaScript Arbortext PE Application
  
Sample JavaScript Arbortext PE Application
The sample JavaScript applications are included in Arbortext Publishing Engine installation. These applications are on the server and loaded into an Arbortext PE sub-process when it starts. The JavaScript sample applications are:
PE_HOME\e3\samples\javascript\E3AppTest.js
PE_HOME\e3\samples\javascript\e3samples2.js
The E3AppTest.js sample is available for testing from the Arbortext Publishing Engine HTML web page (for information, see Monitoring and Reporting Using a Web Browser). It is handled by the Arbortext PE Request Manager, so you don't need to place it in the PE_HOME\custom\init directory. The E3AppTest.js sample application reports information about the Arbortext Publishing Engine environment. Document manipulation, such as opening, closing, and changing content, is accomplished using the AOM and DOM interfaces (refer to the Programmer's Reference). For information on e3samples2.js, see Sample Applications.