Guidance
The exit button offers users a swift exit from sensitive content (example: Victim services) to a neutral search page while also ensuring that the page they left is discreetly hidden from the back button’s history.
Do
- Use on pages with sensitive information that could put someone at risk of abuse or retaliation.
- Use on pages that might reveal someone’s plans to avoid or escape from harm.
Don’t
- Use this on ordinary content that is unlikely to put the user at risk.
Exit button
This exit button uses vanilla javascript to replace the current page with Google and hide it from the browser’s back button. The exit button is fixed to the bottom right of the screen just above the sticky back to top nav. This positioning keeps it within easy reach on mobile devices.
Exit pageHTML
<a id="quick-exit" href="https://www.google.ca/" class="gnb-btn-exit">Exit<span> page</span><i class="fa-solid fa-person-walking-arrow-right"></i></a>
<!-- Put this just before the closing </body> tag on your page -->
<script lang="javascript">
(function (gnb_exit_button) {
function QuicklyExit() {
location.replace(this.href);
return false;
}
gnb_exit_button.onclick = QuicklyExit;
})(document.getElementById("quick-exit"));
</script>