Hi,
Lots of results via Google:
http://www.google.com/search?q=disabling+the+back+button
AFAIK, you can't actually do this. If you absolutely, positively want
to do this, there are several articles in the search above that talk
about how to come close.
The question I think you probably want to ask yourself, though, is why
do you want to? E.g., step back from the technical problem for a
moment and consider the design problem. One of main powers of the web
is that pages are addressable; the back and forward buttons are really
just a side-effect of that, but such a useful one that the web has
even influenced file managers like Windows Explorer (surely not a
bastion of innovation!) to add forward and back buttons. Most likely,
your users *want* to be able to go backward and forward through your
site.
Frequently, people want to do this because they want to avoid having a
form get reposted when the user clicks the Back button after posting.
There are a couple of better ways to do that: Using an XHR to send
the form data instead of actually posting the form (if you're limiting
yourself to browsers with XHR), or using the redirect-after-post
pattern (for more limited browsers):
http://www.google.com/search?q=redirect+after+post
http://en.wikipedia.org/wiki/Post/Redirect/Get
The nice thing about redirect-after-post is that most of the time it
lets your users do what they *meant* to do when they clicked the Back
button. Which is really my point: Barring some edge cases (and
perhaps yours is one of them), with proper design you can support the
back button rather than prohibiting it.
FWIW,