[Javascript] Walking the DOM

Troy III Ajnej trojani2000 at hotmail.com
Mon Sep 11 11:51:48 CDT 2006


"Peter Brunone" <javascript at LaTech.edu>
Then again, I'm confused as to why you'd need innerText if all you have is text in the link.  The innerHTML property does not return the tag of the element itself; that's outerHTML, which is a whole different issue.
That's because he is referencing his no name, A tag element from its parent  List Item ID.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                         Troy III                           progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



> >     <li class="anor" id="album01"><a href="album1.html">My Favorite  > Photos (58)</a></li>> > > > and... in my javascript I have...> >     o=document.getElementById('album01');> > > > How do I reference (with the intent of changing) the content of the  > anchor? My goal is to replace the text with an updated number from  > the server, but I need a method to replace the text. As a side  > question should I be using innerHTML, or is there a better method. If  > anyone is using prototype and knows of a method through that library  > that would be helpful.> > > > Thanks,> > Terry
_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060911/53e8639a/attachment.htm>


More information about the Javascript mailing list