Home  >  Article  >  Web Front-end  >  What is the Dom of js?

What is the Dom of js?

little bottle
little bottleOriginal
2019-05-18 12:01:249744browse

DOM in js refers to "Document Object Model", which means document object model. It is a programming interface for HTML and XML documents; it provides a structured representation of the document and defines A way to access this structure from a program, thereby changing the structure, style, and content of the document.

What is the Dom of js?

#DOM is the abbreviation of Document Object Model.

BOM Browser Object Model:

What is the Dom of js?

#Any document can be drawn into a tree structure. On the DOM tree, each element can be viewed with Make an object, each object is called a node.

Document is an object, and this object refers to the document

The Document Object Model (DOM) is the programming interface for HTML and XML documents. It provides a structured representation of the document and defines a way to access the structure from a program to change the document's structure, style, and content.

DOM parses the document into a structured collection of nodes and objects (objects containing properties and methods). Simply put, it connects web pages to scripts or programming languages.

What is the use of DOM?

is to operate elements in HTML, making it possible to change the content of the web page after it is downloaded to the browser.

The above is the detailed content of What is the Dom of js?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn