Home Menu

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)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms