Event Object
noun
say it: “ih-VENT OB-jekt” /ɪˈvɛnt ˈɒbdʒɛkt/
The object the browser passes to an event listener, with details such as which element was clicked.
What is Event Object in JavaScript?
Event Object — An object containing information about an event that occurred.
button.addEventListener("click", event => {
const clickedButton = event.target;
});
In a sentence
- “The event object's target told me which button was clicked.”
Level: Freelancer · More JavaScript terms at this level
Updated