Ask the Expert

Disable back button of browser in Web application

I have a Web application in which I want to disable the back button of browser, but I am unable to find solution for it. Is there any JavaScript for disabling the back button of the browser (IE and Netscape mainly)?
There is no way disable only the back button that I know of... You can disable the entire "toolbar" can contains the Back button as well as the other browser control buttons, by using the toolbar property of the window object in JavaScript, but I have found no way to disable individual objects within the toolbar. Sorry...

This was first published in February 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: