Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

20 Providing navigation in HTML > 20.4 Creating a browse sequence > 20.4.2 Choosing buttons versus text links for a browse sequence


20.4.2 Choosing buttons versus text links for a browse sequence

By default, Mif2Go 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, Mif2Go navigation macros produce JavaScript code such as the following:

<button type="button"

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

When UseNavButtons=No, Mif2Go 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 20-3.



20 Providing navigation in HTML > 20.4 Creating a browse sequence > 20.4.2 Choosing buttons versus text links for a browse sequence