Exit this page
Give users a way to quickly and safely exit a service, website or application. Keyboard-only users can quickly tap the shift key 3 times to exit the page.
Exit this page with no parameters
When called with no additional arguments the component renders a button that links to BBC Weather. The default link target can be changed in the library configuration options.
Exit this page with custom text and URL
Both the link text and redirect URL can be overridden with arguments. For consistency
with other link helpers, href
can be used instead of redirect_url
.
Exit this page with custom HTML
Any HTML can be provided to the exit this page component using a block.
Adding a secondary link to the top of the page
In addition to the component a link can be added alongside the skip link that allows people to quickly exit the site using their keyboard.
Overriding the assistive text
When operating in keyboard mode screen readers will announce the following events:
- activation (configured with
activated_text
) - timing out (configured with
timed_out_text
) - press two more times to exit (configured with
press_two_more_times_text
) - press one more time to exit (configured with
press_one_more_time_text
)
The defaults can be overwritten application wide by setting the appropriate values in the configuration.