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 2 years ago
Was this helpful?