browser ⟩ event ⟩ .target
Most event objects have a targetarrow-up-right 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 Handlingarrow-up-right ⟩ Propagationarrow-up-right
Event ⟩ .targetarrow-up-right (EventTargetarrow-up-right)
Last updated 3 years ago