Menu
Samaritan's Purse

GETELEMENTBYID

getElementById returns the first element within the document whose ID is elementId.

SYNTAX

document.getElementById(elementId)

EXAMPLES

INTERNAL

getElementsByClassName

getElementsByTagName

getElementsByTagNameNS

EXTERNAL

Web Hypertext Application Technology Working Group (WHATWG)