wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes javascript for disable back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript for disable back button" Watch "javascript for disable back button" New topic

javascript for disable back button

Anand Suryavanshi

Joined: Feb 16, 2009
Posts: 5
hello experts,

i want javascript to disable the back button of the IE.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41114
That's a nice summary article; I've added a link to it to the http://faq.javaranch.com/java/JavascriptLinks page.

Ping & DNS - my free Android networking tools app
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Anand Suryavanshi wrote:hello experts,

i want javascript to disable the back button of the IE.

This is usually asked to workaround a certain problem which isn't elaborated about at all.
Better elaborate here about the actual problem and ask how to solve it.

Changing the client environment and user experience is a bad practice. Think twice about it.

At any way, the real solutions for the common problems for which this workaround is "invented" are the PRG pattern and disabling of the response caching and in some cases just robustly written code at server side.
Consider Paul's rocket mass heater.
subject: javascript for disable back button
Similar Threads
JSP login/logout session problem
Disable the functionality of the back button in all browsers.
how to diable browser back button
Browser Back Button
Log Out Problem