Is this 'deja vu' all over again? The links array is only accessed via number index. There is no name/id <-> index mapping AFAIK. Bob Filipiak (Contractor) MCP -----Original Message----- From: Lewis Shadoff [mailto:lshadoff at brazosport.cc.tx.us] Sent: Saturday, July 14, 2001 3:07 PM To: javascript at LaTech.edu Cc: andyg at ihug.co.nz Subject: [Javascript] Re: Changing HREF properties 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 _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010716/57eed25f/attachment.htm>