[Javascript] Changing HREF properties
Andrew Gibson
andyg at ihug.co.nz
Fri Jul 13 18:14:35 CDT 2001
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>
document.links['mylink'].style.textDecoration='underline';
Cheers
Andrew
More information about the Javascript
mailing list