You cannot disable browser buttons. If you could, what should stop you from disabling other things / reading private data from the browser etc etc ? Let us know the underlying reason behind this requirement. If you do not want to display cached pages, there are ways through which that can be accomplished.
Ankur Rati wrote:How can we disable browser buttons like back/forward from JSP?
This has to be a FAQ, if not, we need to start one.
This question has been coming up since applets and other programming tools started showing up in browsers in the mid-90s. It comes because the application/scriptlette/etc. gets its state all screwed up if the user uses the normal back/forward buttons on the browser. This is true. But what
@Ankur Rati asks is the wrong question.
The proper questions is: Since my code currently gets all screwed up when the user does the Browser back/forward button thing, how do I fix my code.