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

 

'Study > Coding' 카테고리의 다른 글

Scope and Hoisting  (0) 2020.03.01
Array  (0) 2020.03.01
Objects  (0) 2020.02.17
Functions  (0) 2020.02.12
Program Flow  (0) 2020.02.12