<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>But you don't need to change the href="album01.html". <BR>
Is that correct?<BR><BR><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR> Troy III<BR> progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR>
<HR id=stopSpelling>
<BR>
> From: riegel@clearimageonline.com<BR>> Subject: [Javascript] Walking the DOM<BR>> Date: Fri, 8 Sep 2006 15:17:58 -0400<BR>> To: javascript@LaTech.edu<BR>> <BR>> If I have the following markup...<BR>> <BR>> <li class="anor" id="album01"><a href="album1.html">My Favorite <BR>> Photos (58)</a></li><BR>> <BR>> <BR>> <BR>> and... in my javascript I have...<BR>> <BR>> o=document.getElementById('album01');<BR>> <BR>> <BR>> <BR>> How do I reference (with the intent of changing) the content of the <BR>> anchor? My goal is to replace the text with an updated number from <BR>> the server, but I need a method to replace the text. As a side <BR>> question should I be using innerHTML, or is there a better method. If <BR>> anyone is using prototype and knows of a method through that library <BR>> that would be helpful.<BR>> <BR>> <BR>> <BR>> Thanks,<BR>> <BR>> Terry<BR>> _______________________________________________<BR>> Javascript mailing list<BR>> Javascript@LaTech.edu<BR>> https://lists.LaTech.edu/mailman/listinfo/javascript<BR><BR><br /><hr />Use Messenger to talk to your IM friends, even those on Yahoo! <a href='http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe' target='_new'>Talk now!</a></body>
</html>