browser ⟩ event ⟩ .target
Most event objects have a target property that refers to the node where they originated. You can use this property to ensure that you’re not accidentally handling something that propagated up from a node you do not want to handle.
target
buttons A, B, C
Eloquent JS ⟩ Ch. 15: Event Handling ⟩ Propagation
Event ⟩ .target (EventTarget)
Last updated 1 year ago