Document Document Object
Last updated: 2026-09-09
Document Document Object
Document is the root DOM object.
| Category | DOM |
|---|---|
| ES version | ES1 |
📝 Syntax
document.getElementById('id');
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
(DOM operations)
💡 Tip DOMContentLoaded fires earlier than load.
ℹ️ info document.body/head are shortcuts.
🏷️ Related Items
💡 Related Cases
More case studies coming soon — check back later.
📚 Related Tutorials
❓ FAQ
QWhat is document?
AThe DOM root object.
QWhen does it fire?
AAfter HTML parsing.
QWhat is document.body?
AReference to .