Showing posts with label document.getElementsByTagName. Show all posts
Showing posts with label document.getElementsByTagName. Show all posts

Thursday, 30 August 2012

DOM: the document.getElement[s]By

   


I can feel that the summer is almost over and it's time to get to serious things again.
In the following post, we are going to see how to manipulate the DOM elements with document.getElement[s]By.
As you may know we have different way of manipulating DOM elements and here we will see all of them:
1) document.getElementById;
2) document.getElementsByClassName;
3) document.getElementsByName;
4) document.getElementsByTagName;

As you can see there are 4 possible way of using the document.getElement[s]By[something].
Are you ready?