event.target
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ .target
Most event objects have a property that refers to the 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.