This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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
 
GeeCON Prague 2014
 
subject: How we can restrict the Browser with out Going to back