33. followLink
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 33. followLink

Parameter syntax:

    'first' | 'target' | 'next' | 'previous' | 'swap'

This command is unusable unless a link scheme is associated to the document being edited. This association is done by the means of a `linkScheme` configuration element in <ttl>XMLmind XML Editor - Configuration and Deployment</ttl>.

first

  An element acting as an anchor (that is, a link target) must be implicitly or explicitly selected. Scrolls to and selects the first element of the document which is a link to this anchor (if found).

target

  An element acting as a link must be implicitly or explicitly selected. Scrolls to and selects the element which is the target of this link (if found).

next

  An element acting as a link must be implicitly or explicitly selected. Scrolls to and selects following link element targeting the same anchor (if found).

previous

  An element acting as a link must be implicitly or explicitly selected. Scrolls to and selects preceding link element targeting the same anchor (if found).

swap

  An element acting as an anchor or acting as a link must be implicitly or explicitly selected. Scrolls to and selects opposite link end (if found).

Examples:

    followLink swap
    follwLink next

See also command `selectById`.

Prev | Up | Next
32. fail | Home | 34. formatTextAs