If you have written code in JavaScript, you should be familiar with something called the Document Object Model (DOM). You can think of the DOM as a hierarchical structure of objects, with the window object at the very top, followed by the document object. The window object is essentially a container holding all of the objects in JavaScript, immediately followed by the document object containing all of the HTML elements (nodes).

#javascript-tips #programming #javascript

JavaScript Intro: The DOM
1.65 GEEK