Genero Web Client / GWC How To's |
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
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.