DOM Manipulation

event.target

event.target

MediumDOM ManipulationEvent ConceptsPRO

Use event.target in a delegated click handler to update the clicked DOM item, even when a nested element receives the click. This exercise clarifies target, currentTarget, and local state updates.

What you'll practice

  • Use event
  • Target in a delegated click handler to update the clicked DOM item
  • Even when a nested element receives the click
  • This exercise clarifies target
  • CurrentTarget
  • Local state updates

Unlock full access

Choose a plan and go straight to secure checkout.

  • All 600+ interactive exercises
  • Full course curriculum
  • Access to guided projects
  • All future content included

Secure checkout with Stripe. Cancel anytime.