how to change link.text color dynamically ?

I

irma

I have 2 frames, one frame is a table of content with a bunch of
links, and the other frame houses the contents. I want to be able to
change the
color of the link text when the user clicks on it.

I tried this:
var name = document.links[0].text;
name.fontcolor("yellow");

but didn't work, probably because "name" is a copy, not a reference to
the link object property right ? Can anyone help ? Thanks a bunch in
advance!!

Regards,
Margaret
 

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,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top