Prevent back button in browser

From Code Trash
Jump to: navigation, search

replace(url) Replace the current document with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session history, meaning the user won't be able to use the Back button to navigate to it.

Reference

https://developer.mozilla.org/En/DOM/Window.location