### 9.3.4 Adding expandable sections to HTML Help

The HTML Help Workshop help file explains how to add the required HTML and JavaScript code for expanding sections. With Mif2Go macros you can automate insertion of this code in the output.

For example, suppose you want to use a link:

Click for more

which, when clicked, displays additional text:

Here is a more detailed explanation.

You could apply a special paragraph format to the link text (for example, ClickLink) and another format to the expandable text (for example, ClickText). In your configuration file you would include macros that contain the required HTML code for each paragraph type. If the link text was always the same, you could include that in the macro too, and just have the text for the expanded part in FrameMaker. Or, you could use a button (see §9.6.6 Creating buttons for other types of related-topic links).

| 9.3.3 Adding tabs and toolbar buttons to HTML Help |  | 9.4 Creating pop-ups for HTML Help |