Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Disable the browser back button of JSF page

user575682Mar 5 2008 — edited Dec 5 2008
Hi,
I want to disable the back button of a browser, like even if the user clicks the back button of the page he should not navigate to the previous page, he should be in same page only i tried with
<script language="javaScript">
history.go(1);
</script>
But it is not working, when the user clicks the back button it is going to the previous page, Please help me on the same.

Thanks in Advance
Abraham
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2009
Added on Mar 5 2008
5 comments
1,154 views