Document Object Mode(DOM)
A standard for accessing documents is defined by the DOM: The document object model (DOM) is an interface that is platform- and language-neutral and enables programs and scripts to dynamically access and modify a document’s content, structure, and style.
Get Axel Arun’s stories in your inbox
Join Medium for free to get updates from this writer.
Based on the “id” of the element, JavaScript can locate HTML elements in the DOM. For this purpose, the document object’s “getElementById()” method is available.





