wood burning stoves 2.0*
The moose likes Servlets and the fly likes How we can restrict the Browser with out Going to back Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How we can restrict the Browser with out Going to back" Watch "How we can restrict the Browser with out Going to back" New topic
Author

How we can restrict the Browser with out Going to back

sirisha makkapati
Ranch Hand

Joined: Dec 10, 2006
Posts: 83
Any One can tell me...
How we can restrict the Browser with out Going to back
Thanks....
sujava mam
Greenhorn

Joined: Dec 15, 2006
Posts: 5
Here is the one iam using. Its very simple.
Call this function from body onload

function DisablingBackFunctionality()
{
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";
}
}

Regards,
sujava
 
jQuery in Action, 2nd edition
 
subject: How we can restrict the Browser with out Going to back
 
Similar Threads
Restricting a class to be subclassed with out using final key word
sevlets
browser back button functanality
how to avoid browser back button after logout
Back button