관리 메뉴

Silver Library (Archived)

What is DOM? 본문

Personal DB/Mainly for Front-end

What is DOM?

Chesed Kim 2020. 11. 25. 22:23
반응형

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...