Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

18 Creating HTML links  > 18.3 Specifying link destination > 18.3.3 Linking to an arbitrary location


18.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 an existing FrameMaker ObjectID as the target, and in the reference follow the file name with # then the ObjectID:

<a href="filename#ObjectID"></a>

You can also 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:

[HtmlStyles]

ProcHead=CodeBefore

[StyleCodeBefore]

ProcHead=<a name="startproc" id="startproc"></a>

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

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

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



18 Creating HTML links  > 18.3 Specifying link destination > 18.3.3 Linking to an arbitrary location