DOM

وب 1 views

Persian equivalent مدل شیء سند

In plain language The DOM is how JavaScript sees and changes the parts of a web page.

Short definition The Document Object Model represents a document as a tree of objects, including element and text nodes.

Detailed explanation and example

Setting a button’s textContent updates the corresponding node. The live tree can differ from the original HTML after scripts modify it.

Reference