centem
asked on
Javascript getElementByTagName error
Hello,
I'm learning javascript and I'm experimenting running javascript in the firebug console. I'm executing the following code:
var myListItems = document.getElementByTagNa me("a");
console.log(myListItems);
But, I'm getting the following error:
TypeError: document.getElementByTagNa me is not a function
Should it not display an array with all the anchor tags. If not how do I do that.
Thank you.
I'm learning javascript and I'm experimenting running javascript in the firebug console. I'm executing the following code:
var myListItems = document.getElementByTagNa
console.log(myListItems);
But, I'm getting the following error:
TypeError: document.getElementByTagNa
Should it not display an array with all the anchor tags. If not how do I do that.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.