• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

clearing history and disabling back and forward buttons

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic