Riverview Church

GETELEMENTSBYCLASSNAME

getElementsByClassName returns the list of elements whose class names are classNames.

SYNTAX

collection = document.getElementsByClassName(classNames)

EXAMPLES

ALL

FIRST

LAST

CHILD

MULTIPLE

INTERNAL

getElementById

getElementsByTagName

getElementsByTagNameNS

EXTERNAL

Web Hypertext Application Technology Working Group (WHATWG)