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.


This content originally appeared on Welcome to my blog on Trys Mudford and was authored by Welcome to my blog on Trys Mudford

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.


This content originally appeared on Welcome to my blog on Trys Mudford and was authored by Welcome to my blog on Trys Mudford


Print Share Comment Cite Upload Translate Updates
APA

Welcome to my blog on Trys Mudford | Sciencx (2017-11-27T00:00: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 ,<https://www.scien.cx/2017/11/27/dom/>
VANCOUVER
Welcome to my blog on Trys Mudford | Sciencx - » DOM. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2017/11/27/dom/
CHICAGO
" » DOM." Welcome to my blog on Trys Mudford | Sciencx - Accessed . 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: ]
rf:citation
» DOM | Welcome to my blog on Trys Mudford | Sciencx | https://www.scien.cx/2017/11/27/dom/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.