This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

clearing history and disabling back and forward buttons

 
B Bhutta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to disable the back and forward button. Currently the techinque I am using is on my html pages, I am using an onload method to call my clearHistory method which has the following code:
history.forward();
But this techinque, created a flicker when I press the back button. What I mean is, when I press back button, it goes to previous page and come back to same page.
Is there any better way to avoid this flickering!
Thanks for the help.
Thanks.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no there is no way to do it.
look intolocation.replace instead of normal links, it covers up the last page in the history, but removing the back button pisses people off!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic