Jump to content

Need help with getElementsByTagName


eldan88

Recommended Posts

Hey Guys, I am new to java, and was looking into the getElementsByTagName functionality.

 

Every time I use that method, I get the following error message on my firebug  console message

 

"ReferenceError: consloe is not defined

  var myLinks = document.getElementsByTagName("a")

"

 

Below is my code. Any help would be highly appreciated!

var  myLinks  =  document.getElementsByTagName("a");
consloe.log ("Links", myLinks.length);
Link to comment
https://forums.phpfreaks.com/topic/283854-need-help-with-getelementsbytagname/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.