Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can we come to Know that link is already visited???

Status
Not open for further replies.

yash

Programmer
Apr 9, 2001
46
IN
Hi,
I have one screen on which if user click on one LINK then it goes to another Page after doing some transaction to database..?? Now if user press Back button from the Web Browser it again goes back to Previous Page , but with Link's color change..
So now i want to avoid the user to again click on the link..??
So is ther any way to avoid user to click on that link again..
Is there any way in JavaScript that we can get on Color of that link..
As there are many other links User can click on them Not on already visited...


Regards...
 
if you just don't want the colors to be different, in the body tag make them all the same: <BODY LINK=&quot;00FF00&quot; VLINK=&quot;00FF00&quot; ALINK=&quot;00FF00&quot;>

Now your links will be bright green no matter what.
~Javrix

If you gave an infinate number of rednecks, an infinate number of shotguns to shoot at an infinate number of street signs, they would eventually write Romeo and Juliet in braille.
 
Hi Javrix
My need is not the color of link.. Iwant to avoid user to click again on same link he already visted..???
So i want to know is there any way ???
Thanks and my best regards..
 
Well my asp skills are a lot sharper then my javascript skills. I know how to do it in asp, but not javascript.

I would assume it would be something, SOMETHING like this:

if browser.history=yourpageyoudontwantthemtore-visit then
reponse.write &quot; &quot;
else
response.write &quot;<a href=link.asp>here is the link</a>&quot;
end if

that's a really crappy script and it wouldn't work by any means, but you get the idea.
~Javrix

If you gave an infinate number of rednecks, an infinate number of shotguns to shoot at an infinate number of street signs, they would eventually write Romeo and Juliet in braille.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top