DOM

DOM The DOM (Document Object Model) is the interface between HTML and JS. It represents the page as a tree with the ‘document’ at the top (the <html> element, and each node as a child, grandchild, great-grandchild etc…
console.log(document) <html> <body> <p>Hi there</p> </body> </html>var document = { body: { children: [ { nodeName: ‘P’, innerText: ‘Hi there’ } ] } } It acts very much like an object, we can even use dot-notation to access (some) children.

DOM The DOM (Document Object Model) is the interface between HTML and JS. It represents the page as a tree with the ‘document’ at the top (the <html> element, and each node as a child, grandchild, great-grandchild etc…
console.log(document) <html> <body> <p>Hi there</p> </body> </html>var document = { body: { children: [ { nodeName: 'P', innerText: 'Hi there' } ] } } It acts very much like an object, we can even use dot-notation to access (some) children.


Print Share Comment Cite Upload Translate
APA
Welcome to my blog on Trys Mudford | Sciencx (2024-03-29T14:07:00+00:00) » DOM. Retrieved from https://www.scien.cx/2017/11/27/dom/.
MLA
" » DOM." Welcome to my blog on Trys Mudford | Sciencx - Monday November 27, 2017, https://www.scien.cx/2017/11/27/dom/
HARVARD
Welcome to my blog on Trys Mudford | Sciencx Monday November 27, 2017 » DOM., viewed 2024-03-29T14:07:00+00:00,<https://www.scien.cx/2017/11/27/dom/>
VANCOUVER
Welcome to my blog on Trys Mudford | Sciencx - » DOM. [Internet]. [Accessed 2024-03-29T14:07:00+00:00]. Available from: https://www.scien.cx/2017/11/27/dom/
CHICAGO
" » DOM." Welcome to my blog on Trys Mudford | Sciencx - Accessed 2024-03-29T14:07:00+00:00. https://www.scien.cx/2017/11/27/dom/
IEEE
" » DOM." Welcome to my blog on Trys Mudford | Sciencx [Online]. Available: https://www.scien.cx/2017/11/27/dom/. [Accessed: 2024-03-29T14:07:00+00:00]
rf:citation
» DOM | Welcome to my blog on Trys Mudford | Sciencx | https://www.scien.cx/2017/11/27/dom/ | 2024-03-29T14:07:00+00:00
https://github.com/addpipe/simple-recorderjs-demo