DOM (Document Object Model)
DOM (Document Object Model)
With the DOM, JavaScript can access and change all the
elements of an HTML document.
INTRODUCTION
The HTML DOM is a standard object model and programming interface for HTML. It defines:
The HTML DOM can be accessed with JavaScript (and with other programming languages).
In the DOM, all HTML elements are defined as objects.
The programming interface is the properties and methods of each object.
• A property is a value that you can get or set (like changing the content of an HTML
element).
• A method is an action you can do (like add or deleting an HTML element).
Document Objects
element.addEventListener
(event, function, useCaptu
re);