File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How we can restrict the Browser with out Going to back