Home  >  Article  >  Web Front-end  >  What is the Document Object Model?

What is the Document Object Model?

PHPz
PHPzforward
2023-09-15 23:05:031547browse

文档对象模型(Document Object Model)是什么?

The Document object represents the HTML document displayed in this window. Document objects have various properties that reference other objects and allow access to and modification of document contents.

The way to access and modify the content of the document is called the document object Model, or DOM. Objects are organized hierarchically. This hierarchy is suitable for object organization in Web documents.

  • Window Object - The top of the hierarchy. It is the most important element of the object hierarchy.
  • Document Object - Each HTML document loaded into the window becomes a document object. The document contains the content of the page.
  • Form Object - Everything contained within the
    ...
    tag sets the form object.
  • Form Control Elements - A form object contains all the elements defined for the object, such as text fields, buttons, radio buttons, and checkboxes.

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

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete