Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Firefox 4 and higher versions.

We have a web application which will mis-behave if a user hits the back button on Firefox tool bar to 'go back one page'. So I am looking for a way to disable (grey out) this button. This question looking for exact reverse behaviors discussed in this question.

I am looking for a solution in Ubuntu (10.10) and/or Windows as client operating systems.

share|improve this question
As answered in the link you posted, it is not possible to disable that button. On the other hand, maybe you should fix your web application to work well with the back button? – Jin Sep 22 '11 at 9:20
As @Jin said. This is just a typical example of bad web design. You can't disable this functionality for every client (unless you have maybe total control over your clients). – slhck Sep 22 '11 at 9:22
This is an intranet application, so there is total control over ALL the clients. – Jamess Sep 22 '11 at 9:29
I am looking for either a means for disabling it in clients or disabling it from the web application so that when clients open it, you cannot use back button to go back one page. – Jamess Sep 22 '11 at 9:30
Is it only when this webpage is open? Or would entirely disabling the back button be acceptable? – Joe Taylor Sep 22 '11 at 9:34

You could diable the back buttons using a GPO.

Another way is to simply load a new window and to set the new window to not have a toolbar. So if there is a particular set of pages that you want to ensure the user cannot click Back on, just load the first page in that process in a new window with no toolbars.

or you could try this:

<script type="text/javascript">
function noBack(){window.history.forward();}
<body onload="noBack();" onpageshow="if(event.persisted)noBack();" onunload="">

This code is taken from here

share|improve this answer
Thanks. Will check this. – Jamess Sep 22 '11 at 9:44
Only disadvantage I see here is that each page of the application explicitly needs to be programmed to disallow back button. I would still look to see if I can disable it altogether from browser. – Jamess Sep 22 '11 at 9:57
Have you looked into the option of disabling it through a GPO? – Joe Taylor Sep 22 '11 at 10:05
By GPO do you mean, Group Policy in windows ? I did not yet, the primary OS in use is Ubuntu, but I am looking for windows solution as well. Do you know where I can disable it in GPO? – Jamess Sep 22 '11 at 10:24
I've never used GPO's for Firefox but this should get you started: – Joe Taylor Sep 22 '11 at 12:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.