To move the cursor four spaces to the left, press Shift+Tab. (This moves the cursor to the
beginning of the line if it is fewer than four spaces from the left.)
To move a whole line or block of code to the right four spaces, highlight the code, or a
portion of a line, then press Tab.
To move a whole line or block of code to the left four spaces (or as far left as possible
when that is less than four spaces), highlight the code, or a portion of a line, then press
Shift+Tab.
Using a JavaScript Editor
To define or edit JavaScript associated with a specific event for an object, you typically use a
context-specific JavaScript editor, rather than the JavaScript console. The general
procedure for accessing the editor is as follows:
1. Select the object (such as a field, link, bookmark, or page) with which you want to
associate an action defined in JavaScript code.
2. Open the properties dialog box for that object. An example is shown in
F
IGURE
3. Select a particular trigger (for example, Mouse Up or Page Open) that will execute the
JavaScript action.
4. Select Run a JavaScript from the Select Action drop-down list.
Acrobat JavaScript Scripting Guide
2.1
Page Properties
Acrobat JavaScript Editor and Debugger Console
Using a JavaScript Editor
Figure
2.1.
2
21