[Javascript] Re: Changing HREF properties

Lewis Shadoff lshadoff at brazosport.cc.tx.us
Sat Jul 14 14:07:18 CDT 2001


At 12:01 PM 7/14/01, you wrote:
>I've been trying to change the style properties on some href links on a
>mouseover event in IE.
>
>I've only had success doing it this way:
>
>
>document.links[lnk].style.textDecoration='underline';
>
>Where lnk is a numeric value.
>
>I thought you could do it by naming the link also, but had no luck in
>gettting it to work.
>
><a href=whatever name='mylink' >Whatever</a>

Should be:
<a href=whatever id='mylink' >Whatever</a>

>document.links['mylink'].style.textDecoration='underline';

Lewis A. Shadoff, PhD
Brazosport College
Lake Jackson, TX




More information about the Javascript mailing list