Is there a way to prevent the browser back button from functioning?
I attempted to restrict it using the following code:
history.pushState(null, document.title, location.href);
global.window.addEventListener('popstate', function () {
history.pushState(null, document.title, location.href);
});
While this code successfully restricted the back button in Chrome, I encountered an issue with IE11 where it did not work as intended.
Any help or suggestions would be greatly appreciated.