[Javascript] Sorry, another question.

Peter Brunone peter at brunone.com
Wed Apr 18 09:50:15 CDT 2001


Ben,

    AFAIK, you're outta luck when trying to change attributes on the fly in
Netscape 4.  I can't say for more than 95% sure, and I'd love to be wrong,
but don't get your hopes up...

----- Original Message -----
From: "Ben" <ben at babelfish.co.uk>
To: <javascript at LaTech.edu>
Sent: Wednesday, April 18, 2001 9:30 AM
Subject: [Javascript] Sorry, another question.


> 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
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>





More information about the Javascript mailing list