Skip to content
- Reference
- Concepts
- Web
The DOM and events
Find elements with querySelector, react to clicks and typing with addEventListener, and change what the page shows with textContent.
Web12 minCodeDone
Back
Code
Inside: 2 short explanations, a runnable example and 1 checked exercise.
Already unlocked it? Sign in
Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.