53.65 GET_SCREEN_READER_MODE_TOGGLE Function
This function returns a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches screen reader mode on.
Syntax
APEX_UTIL.GET_SCREEN_READER_MODE_TOGGLE (
p_on_message IN VARCHAR2 DEFAULT NULL,
p_off_message IN VARCHAR2 DEFAULT NULL)
RETURN VARCHAR2;
Parameters
Table 53-54 GET_SCREEN_READER_MODE_TOGGLE Parameters
Parameter | Description |
---|---|
|
Optional text used for the link to switch to screen reader mode, when you are in standard mode. If this parameter is not passed, the default 'Set Screen Reader Mode On' text is returned in the link. |
|
Optional text used for the link to switch to standard mode, when you are in screen reader mode. If this parameter is not passed, the default 'Set Screen Reader Mode Off' text is returned in the link. |
Example
When running in standard mode, this function returns a link with the text 'Set Screen Reader Mode On'. When the link is clicked the current page is refreshed and screen reader mode is switched on. When running in screen reader mode, a link with text 'Set Screen Reader Mode Off' is returned. When the link is clicked the current page is refreshed and switched back to standard mode.
BEGIN
htp.p(apex_util.get_screen_reader_mode_toggle);
END;
See Also:
Parent topic: APEX_UTIL