This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Disable back button of browser using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disable back button of browser using javascript" Watch "Disable back button of browser using javascript" New topic
Author

Disable back button of browser using javascript

kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
Hello all i want o disable back button using javascript when user logout.

I do it using


But it goes one page back. On next click on back it goes back to index page.
Than how can i totally disable back button or give any page ref. to back button.

How can i do this
harilal ithikkat
Ranch Hand

Joined: Oct 06, 2008
Posts: 221
Please have a look at this


SCJP 1.5
"A candle looses nothing by lighting another candle"
itechmentors.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61071
    
  66

InterfaceDesignersRule1


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Disable back button of browser using javascript