20.4.4.2 Redefining button browse macros
When UseNavButtons=Yes, you can redefine browse macros for buttons by changing the code assigned to the keywords listed in this section.
Do not try to duplicate <$_prev> and <$_next> logic by using the predefined macro variable components outside of the definitions for <$_prev> and <$_next>. The browse sequence would fail on inter-file links, because you would be missing some critical internal code that is required to handle such links.
Note: In your configuration file each code assignment must be all on one line, even if it does not look that way here.
To redefine macros for buttons that activate links between the HTML files split from a FrameMaker file, change the following default definitions:
; PrevButton = content to put out for <$_prev>
PrevButton = <button type="button"
onclick="javascript:location.href='<$$_prevfile>'">
; NextButton = content to put out for <$_next>
NextButton = <button type="button"
onclick="javascript:location.href='<$$_nextfile>'">
For a previous button in the first and a next button in the last HTML file split from a FrameMaker file, change the following default definitions:
; PrevFSButton = <$_seqprev>, macro to use for <$_prev>
PrevFSButton = <button type="button"
onclick="javascript:location.href='<$$_seqprevfile>'">
; NextFSButton = <$_seqnext>, macro to use for <$_next> at end of file
NextFSButton = <button type="button"
onclick="javascript:location.href='<$$_seqnextfile>'">
For a previous button in the first and a next button in the last HTML file in the entire sequence, change the following default definitions:
; StartingPrevFSButton = <$_prev> to use at start of first file
StartingPrevFSButton = <button type="button">
; EndingNextFSButton = <$_next> to use at end of last file in book
EndingNextFSButton = <button type="button">
For a button link to the top of the current page, change the following default definition:
; TopButton = content to put out for <$_top>,
TopButton = <button type="button"
onclick="javascript:location.href='<$$_currfile>'">
To provide label formatting (for example):
PrevButton = <button type="button"
onclick="javascript:location.href='<$$_prevfile>'">
<p class="navcell">Prev</p></button>
To provide different text for the (non-link) very first and very last buttons, or no text at all:
Typing nothing (or only a single space) after the equals sign results in a null value.
> 20 Providing navigation in HTML > 20.4 Creating a browse sequence > 20.4.4 Modifying macros <$_prev>, <$_next>, and <$_top> > 20.4.4.2 Redefining button browse macros