This method allows you to get an array with all the elements of the document that have the specified CSS class name sent as a parameter.
For example, if you have a class named FirstClass then you can obtain all the elements with this class name by using the following code:

var CSSClass = getElementByClassName("FirstClass");

Leave a Reply