• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to delete browser's history from jsp

 
Vivek Puthiyonnan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i delete the browser's history contents from my jsp program ?Atleast how can i make it inaccessible from the browser.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't do this in Jsp.
Maybe in Javascript, but it does not seem possible.
Look for location.replace. It does not clear the history, but prevent it from growing.
 
Evgeniy Bulanov
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's possible to do with JavaScript. I dont remember where it is, but I suppose there is property like window.history or something like that.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
window.history has no clear facility.
If you say that it's possible, please explain how to do it
 
A Babu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Navigator object is there in jsp.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Navigator in JSP ??
Could be more precise please ?

If you mean Navigator in Javascript, it don't think this will help to clear the history.
[ January 10, 2006: Message edited by: Satou kurinosuke ]
 
A Babu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes navigator object in javascript.

i didn't get your later message.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to HTML/Javascript.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not delete a user's history since it is a security issue. Just like pop up windows and cross browser scripting. If we enable it, it would be ugly.

What you can do with your site is try using the replace() method of the window object when you are using links and that will replace the current page in the history. Now if you are doing post backs it is not going to fly that well.

A site should be designed around the browser and not the other way around.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic