![]() |
|
|
+ Search |
![]()
|
Dec 13th, 2002 06:30
Klaus Bolwin, Mat hesh,
anchors = document.getElementsByTagName("a");
function changeLink(i, newText)
{
anchors[i].firstChild.nodeValue = newText;
}
or:
<a href="..." onclick="this.firstChild.nodeValue ='new text'">old text</a>