Detect visited links

V

VK

aerotops said:
Hi,
Is there any way to detect which links on a page have been visited?

by checking its .currentStyle (IE) / .computedStyle (Co) properties.
Say if you have set in CSS visited link to be backgroundColor purple
and the link in question is purple then guess which one is that ;-)

P.S. Lesser of course visitors with custom CSS set to override page
rules. Did not meet on practice but theoretically possible.
 
T

Thomas 'PointedEars' Lahn

Not directly. However, the :visited CSS selector applies to those links.
If you could modify the rule so that those elements are e.g. hidden, you
could use the
[...] .currentStyle (IE) / .computedStyle (Co) properties.

where Co refers to UAs standards compliant in this regard to see if their
computed style would be display:none and the like. Compare Jesse
Ruderman's "hide visited" bookmarklet:

Say if you have set in CSS visited link to be backgroundColor purple
and the link in question is purple then guess which one is that ;-)

The purple link could as well be the unvisited one.
P.S. Lesser of course visitors with custom CSS set to override page
rules.

Not necessarily.
Did not meet on practice but theoretically possible.

It happens. Your answer, unfortunately as often, qualifies as from being
misleading to being wrong.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top