getElementsByClassName method

HTMLCollection getElementsByClassName(
  1. String classNames
)

The Element method getElementsByClassName() returns a live HTMLCollection which contains every descendant element which has the specified class name or names.

The method Document.getElementsByClassName on the Document interface works essentially the same way, except it acts on the entire document, starting at the document root.

Implementation

external HTMLCollection getElementsByClassName(String classNames);