Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 859 Bytes

File metadata and controls

24 lines (16 loc) · 859 Bytes

Read06

Object Literals

An object literal is a set of keys and values, seperated by commas.

Document Object Model

The Document Object Model specifies how broswers should The Document Object Model (DOM) specifies how browsers should create a model of an HTML page and how JavaScript can access and update the contents of a web page while it is in the browser window.

from page 183 on Javascript Book

The DOM tree is a model of the webpage.

The terms elements and element nodes are used interchangeably but when people say the DOM is working with an element, it is actually working with a node that represents that element.

DOM queries may return one element, or they may return a Nodelist, which is a collection of nodes.

When a DOM method can return more than one element, it returns a Nodelist (even if it only finds one matching element).