Brainlag
  1. Library
  2. Concepts
  3. 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 minPremium

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.