05-18-2008, 10:24 PM
|
#2 (permalink)
|
|
The Visitor
Join Date: Apr 2008
Posts: 1
Thanks: 0
|
Missing the closing parentheses after
Code:
alert(byid.childNotes[2]);// shows second li item
and
Code:
alert(link.getAttribute("link");
Try using Firebug when you're running these programs - it catches simple errors like this.
Also -
In document.getElementsByTagName you need to have Elements not Element.
byid.childNodes instead of byid.childNotes
document.getElementById with a capital B
|
|
|
|