This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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