DOM in JavaScript (Day 2)

DOM document object model, document object model, also called dom tree; DOM is composed of nodes. HTML tags are called tag nodes, and attributes are called attribute nodes;

console.log(docment); you can output the docment document object, which can be expanded layer by layer in a tree-like structure;

 

js is an event driven language

Three elements of an event

1. Event Sourcing

2. Events

3. Event handler

 

The BOM is the browser object model, and the DOM is a property of the BOM.

window.document

window.location

window.open

window.close

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324813522&siteId=291194637