The only way the back button is disabled is if there is not history in the browser, in other words if they haven't gone to any other pages before the present one.. it the first page.
I'm not sure if this will help you in your situation, but there is a way, however, to create a website so that when you navigate it, it doesn't create a history trail.
the function is:
The problem with this is, if they are coming to this page from another page, they can still bo "back" to the pages or site before you used location.replace('url').
So the other option would be to open it up in a new window, and if you are going to do that you might as well not bother with location.replace('url') and just hide the whole nav bar in the new window. - tleish
No there's no way to clear a users history, it's a security thing.
I'm sure you have good intentions, but could you imagine what the internet would be like if you could do that. Every website you'd go to would clear your history to keep you on their site, and you'd never be able to even use the Back button. You'd essentially be trapped in a site until you close your browser and start all over again.
Again, the only way to have no history in a browser window is to open a new one. - tleish
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.