aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes  how to delete browser's history from  jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " how to delete browser Watch " how to delete browser New topic
Author

how to delete browser's history from jsp

Vivek Puthiyonnan
Greenhorn

Joined: Jan 26, 2005
Posts: 18
How can i delete the browser's history contents from my jsp program ?Atleast how can i make it inaccessible from the browser.


Vivek P
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.


[My Blog]
All roads lead to JavaRanch
Evgeniy Bulanov
Greenhorn

Joined: Dec 19, 2005
Posts: 23
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.


Computers are like air conditioners - They stop working properly when you open Windows
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

window.history has no clear facility.
If you say that it's possible, please explain how to do it
A Babu
Ranch Hand

Joined: Nov 28, 2005
Posts: 114
hi,
Navigator object is there in jsp.


Thanks,
www.Admakr.in
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Nov 28, 2005
Posts: 114
yes navigator object in javascript.

i didn't get your later message.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Moved to HTML/Javascript.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to delete browser's history from jsp