#### 29.3.2 Choosing buttons versus text links for a browse sequence

By default, DITA2Go navigation macros <$_prev> and <$_next> produce simple text links. However, you can specify buttons instead:

    [NavigationMacros]
    ; UseNavButtons = No (default, use links for <$_prev> and <$_next>)
    ;  or Yes (change the set of defaults to those for buttons instead)
    UseNavButtons = Yes

When UseNavButtons=Yes, DITA2Go navigation macros produce JavaScript code such as the following:

    <button type="button"
      onclick="javascript:location.href='Destination'">Label</button>

When UseNavButtons=No, DITA2Go navigation macros produce HTML code such as this:

    <a href="Destination">Label</a>

Both button and text-link navigation macros use predefined macro variables to provide appropriate values for Destination and Label; see Table 29-1.

Previous Topic: 29.3.1.2 Understanding how browse macros employ macro variables

Next Topic: 29.3.3 Formatting browse-link labels

Parent Topic: 29.3 Creating a browse sequence

Sibling Topics:

29.3.1 Understanding how browse macros work

29.3.3 Formatting browse-link labels

29.3.4 Modifying macros <$_prev>, <$_next>, and <$_top>

29.3.5 Understanding browse keyword scope and default values

29.3.6 Specifying where to invoke a browse macro