Study/Coding

DOM objects/elements

Haayany 2020. 5. 22. 14:43

document - the root of the page

document.URI, document.height, document.links, document.bgColor.....

element - a node in the tree

Returned by a member of the API (ex: div, p, h1, ...)

nodeList - an array of elements

document.getElementByTagName('p') would return a set of nodes