The DOM
Find and update page elements.
What you’ll learn
The DOM represents the document as objects. Query an element, then update its text, attributes, classes, or children.
Press Ctrl/Cmd + Enter to run.
Find and update page elements.
The DOM represents the document as objects. Query an element, then update its text, attributes, classes, or children.
Press Ctrl/Cmd + Enter to run.