Browser Back and Forward Buttons

Browser back and forward buttons can trigger an action.

MENU
  ON ACTION browser_back
    ... 
  ON ACTION browser_forward
    ...
  ON ACTION quit
    EXIT MENU
  ON ACTION close
    EXIT MENU
END MENU

Customizing the action name

The default Genero names for the actions are browser_back and browser_forward. These names are customizable in the main template file $FGLASDIR/tpl/SetHtml5/main.xhtml.
backButtonActionName: 'browser_back', 
/// the name of the action that is triggered when the 
browser's back button is pressed
forwardButtonActionName: 'browser_forward', 
/// the name of the action that is triggered when the 
browser's forward button is pressed

In this code snippet, the JavaScriptâ„¢ name (backButtonActionName) is mapped to the Genero action name (browser_back). To customize the action name, you would change browser_back to a name of your choosing. Note that these actions are not configured by default in $FGLDIR/lib/default.4ad. You might want to hide or change the text for these actions. Feel free to amend default.4ad to your liking.