wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes disable back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disable back button" Watch "disable back button" New topic
Author

disable back button

shivaram bupathi
Greenhorn

Joined: Oct 12, 2006
Posts: 4
how can i disable back button of the browser from my jsp page

i tried using the following code

//Code to disable the Back Button in Internet Explorer
var URL;
var i ;
var QryStrValue;
URL=window.location.href ;
i=URL.indexOf("?");
QryStrValue=URL.substring(i+1);
if (QryStrValue!='X')
{
window.location=URL + "?X";
}

but sometimes it is not working ,
do i need to do any settings/changes in browser?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disable back button
 
Similar Threads
how to diable browser back button
How to disable back button of Safari
Need help in writing a secure code
Browser Back Button
Disabling the Back button of the browser