Silver Library (Archived)
What is DOM? 본문
반응형
The HTML DOM(Document Object Model)
Tree of Objects

With the object model, JavaScript gets all the power it needs to create dynamic HTML:
- JavaScript can change all the HTML elements in the page
- JavaScript can change all the HTML attributes in the page
- JavaScript can change all the CSS styles in the page
- JavaScript can remove existing HTML elements and attributes
- JavaScript can add new HTML elements and attributes
- JavaScript can react to all existing HTML events in the page
- JavaScript can create new HTML events in the page
JavaScript HTML DOM (w3schools.com)
JavaScript HTML DOM
JavaScript HTML DOM With the HTML DOM, JavaScript can access and change all the elements of an HTML document. The HTML DOM (Document Object Model) When a web page is loaded, the browser creates a Document Object Model of the page. The HTML DOM model is con
www.w3schools.com
Q.What's the benefit? When can I use this?
A. Read the above 7 dot sentences again!
So, this is a notion to interact HTML & CSS with JavaScript...
'Personal DB > Mainly for Front-end' 카테고리의 다른 글
[basic] The web and web standards (0) | 2021.02.28 |
---|---|
[JS] Resize the screen, then change the colour (0) | 2020.11.26 |
JavaScript - explanation of 'Property' (0) | 2020.11.26 |
Example of 'Array inside a JS Object' (0) | 2020.11.24 |
JavaScript Expression? (0) | 2020.11.24 |