Please wait for the page to load completely before hitting the back button! This is because the jsbin.com loads its own script bundles first and they can cause a delay.

This page is running with the script that shall not allow you to go back. The script has disabled backspace as well, except in the input fields.

Tip - If the page is still allowing you to go back then it could be because the script has not loaded. You may try refreshing the page again. Please try the script in your code to see the exact behavior.

Disclaimer - The script does not guarantee to stop the user from going back. There are other ways that users can use to navigate back. We are not blocking the browser back button here (we cannot) but only creating an impression of blocking the back button.