#### 28.3.3 Linking to an arbitrary location

To create a link to an arbitrary location in a file, you must identify or establish a target at that location. You can use a format macro to create and name the target. For example, suppose one of your HTML files includes a procedure, and you want to create a link to the procedure rather than to the beginning of the file. Suppose your procedures always start with a paragraph format called ProcHead. You could assign the following properties and code to ProcHead:

    [HTMLParaStyles]
    ProcHead=CodeBefore

    [ParaStyleCodeBefore]
    ProcHead=<a name="startproc" id="startproc"></a>

If the procedure is in HTML file xx123456, the link would look like this:

    <a href="xx123456#startproc"></a>

You must ensure the target file contains no conflicting uses of the same target name, for example in HyperAnchor PI markers.

Previous Topic: 28.3.2 Forcing all links to top-of-page

Next Topic: 28.4 Creating jumps to particular windows for HTML

Parent Topic: 28.3 Specifying link destination

Sibling Topics:

28.3.1 Forcing links to top-of-page for selected paragraph formats

28.3.2 Forcing all links to top-of-page

Table of Contents • Index