getElementById

getElementById finds an HTML element according to it's identification.

Syntax

document.getElementById("id")

Example

External

Mozilla Developer Network