[Javascript] Sorry, another question.

Ben ben at babelfish.co.uk
Wed Apr 18 09:30:36 CDT 2001


Hi again.

Slightly different question this time involving changing the font style of
an anchor tag in Netscape 4.7.  Can it be done?

I'm trying this way, :

function changeLink(obj)
{
    obj.className = 'clsNewClassName';
}

where clsNewClassName is the new class i want it to use.  no joy there, it
doesn't even error.

and this:

function changeLink(obj)
{
    obj.style.fontColor= '#808080';
}

that doesn't work either, and again it showed no error at all.

any ideas?

many thanks.

 .ben





More information about the Javascript mailing list