Document Object Model
# Metadata
2022-05-21 16:00
# Glossary
- HTML Element -> DOM Node
- JavaScript manipulates the DOM nodes
- Manipulation: modifying attributes, creation, deletion
# Deduction
A DOM Node is an object that represents HTML Elements
An object has attributes and methods
We access the attributes via indexing, the notation can be something such as objectName.attributeName
Conclusion: This means a DOM Node could have things such as .disabled
.disabled sounds like an attribute/property that has a boolean value
true or false, if domNodeName.disabled == true then the DOM Node is disabled.
|
|
Remember: use defer
in the HTML script tag to wait for everything to load.
# Sources:
- The Odin Project Discord Server
- Own notes