Example: Create an ALink using a text link
- Click here to see a sample ALink text link.
- Open the HTML file in which you want to create an Associative link (ALink) as a text link.
- Click .
- In the Specify the command box, click ALink Search and, if you have already used the HTML Help ActiveX control in this file, enter an ID name for this instance of the control.
- Click Next, and then click Hidden to specify that you will be scripting this use of the HTML Help ActiveX control.
- Select the appropriate display type options, and then add the ALink names you want to jump to.
- Position the cursor at the location where you want to create the link, and then copy the following tag into your file:
<A HREF="JavaScript:hhctrl2Click()">add link text here</A>
In this example, hhctrl2
specifies 2 as the ID number for this instance of the HTML Help ActiveX control, which the ALink Search command should look for.
- Replace
add link text here
with the words you want to use.
Notes
- For this example, the ALink name example was added to the beginning of the HTML file. When you click the text link, it jumps to all target files that contain example as an ALink name.
- You can test ALinks in compiled help files.
- For more information about ALinks, see the HTML Help ActiveX control reference.