@shmVirus

The DOM and Events

Selecting, manipulating, and reacting to the document object model in the browser.

The DOM is the browser’s in-memory representation of a web page, and JavaScript manipulates it to create dynamic interfaces. This chapter covers element selection, attribute and style manipulation, creating and removing nodes, and attaching event listeners.