This is a discussion on "Erasing History" within the JavaScript Forum section. This forum, and the thread "Erasing History are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Erasing History
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Erasing History
Hi there:
I was wondering, is there any way to erase the "visited" history on a web page via javascript? Let me explain it a bit, whenever I click on a link, it's marked as "visited", but I don't want it to be marked at all. How can I do this? |
|
|
|
#2
|
||||
|
||||
|
Re: Erasing History
JavaScript cannot access files on a computers system, so this is not possible.
|
|
#3
|
||||
|
||||
|
Re: Erasing History
Now that I think about it though, there are other ways of simulating that a user hasn't visited a certain page. If you're using PHP, for instance, these are different pages in the eyes of a browser, but not to your server.
http://yourdomain.com/page.php http://yourdomain.com/page.php?time=16092924 |
|
#4
|
|||
|
|||
|
Re: Erasing History
Let me explain what I'm trying to do. I have a menu with links that link only to pages within my domain. So when a link is accesed, the page is loaded and the link is highlighted. I wanted to do that effect by using a:visited on the css file, but I realized that when a page is visited once it stays like that until your history is errased. I wanted to erase the history, but apparently that's not posible.
By the way I'm using jsp to generate the html and a tag to add the menu, so every page has the same menu, that's why I wanted to do this via css. I think the best solution would be to send an argument to the tag that generates the menu indicating in which page the user is at a current time. |
|
#5
|
|||
|
|||
|
Re: Erasing History
Why do actually want to do this?
Indicating to a user where they have been is part of the feedback that most users appreciate, especially if it's a large site. |
![]() |
| Tags |
| history |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| After login: Redirect to page in history (Current - 2)... | skuliaxe | PHP Forum | 4 | Feb 20th, 2008 16:54 |
| <title>Tennis London : Tennis History</title> how should it read | Oak | Search Engine Optimization (SEO) | 5 | Feb 6th, 2008 01:31 |
| History cleaning development | joachim shotter | Job Opportunities | 1 | Oct 30th, 2005 11:20 |