How long will a browser remember a "a:visited" link? Assuming the method isn't uniform across browsers - an answer for any individual browser (or as many as you know) would be helpful.
Also, under which type of memory is it stored? "Web History"? Cache?
You can parse all links on the page and and get their CSS color property. If a color of the link is a match to the color of unvisited link you defined in CSS the this link is unvisited. This kind of technique usually used to determine all visited links.
a:link if for an unvisited link, while a:visited is for a link that the user has visited. Usually the user will want some way to differentiate between the two in which case you'll style them separately.
The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.
Visited links are part of your web history, and how long they're stored depends on each user's individual browser settings. I believe Firefox remembers unlimited history by default, but anyone can set a time limit on it, or have it be cleared every time they close their browser, etc.
Usually, it's :visited
if the url is in the browser's history, this is pretty consistent across browsers. How long?...however long history is stored, which varies greatly depending on preferences. Also, if the user's in any sort of privacy mode, history is typically disabled, meaning no links are "visited".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With