Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > NEWBIE: How to determine if link has been visited earlier?

Thread Tools

NEWBIE: How to determine if link has been visited earlier?
Posts: n/a
Hi All,

I'm trying to create a page with hyperlinks and the code displayed
below is how I display the links. I want to add something to distingish
between links that have been visited and those who haven't. Some kind
of bullet.gif or something.
I want to save the visited links in a cookie and when the page is
opened that the links who have been visited are displayed different.
When I click a link this must be added to the cookie.

function HW(link,tekst,clipdata) {
if (wi==1) {

text2write = b2 + link + "'" + tag + target + "'";
text2write += "onclick='setClip(\"" + clipdata + returnDate() +
text2write +=
text2write += ">" + tekst + L;



function setClip(clipdata) {
if (window.clipboardData) {
window.clipboardData.setData('text', clipdata);

<SCRIPT language=javascript>
HW('myweblink/2005/Rep','Reports 2005','MWL.BRIEF.2005.') Etc...



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How do I know what sites have been visited on my PC? indiechick General Computer Support 1 08-26-2007 12:54 PM
how to set link's "visited" property/pseudo-class without clicking on the link friday13 Javascript 3 04-28-2007 12:14 AM
The printing has been stopped and this job has been add to the queu? dejola Computer Support 6 12-30-2005 03:26 AM
Using cookies to determine the last page visited Anita C ASP .Net 1 12-23-2003 08:07 PM