Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

19 Creating HTML links > 19.3 Specifying link destination > 19.3.3 Linking to an arbitrary location


19.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>

However, a FrameMaker ObjectID will change if you do any of the following to the paragraph containing the object (see §5.3.2 Working with FrameMaker ObjectIDs):

copy and paste the paragraph (the pasted copy gets a new ID)

delete the paragraph and then retype it

hide the paragraph with a condition and then show it.

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:

[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 newlinks.



19 Creating HTML links > 19.3 Specifying link destination > 19.3.3 Linking to an arbitrary location