Search
Star
Feedback
Setup for Free
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
event handler vs event listener in JS - Kevin Powell - Community
KP-C
Kevin Powell - Community
β’
8mo ago
β’
17 replies
Faker
event handler vs event listener in JS
Hello
, quick clarification
, an event handler is the action that happens when a registered event has been triggered
? An event listener is the thing that registers an event
?
For example
,
someButton.addEventListener("click", doSomething )
someButton.addEventListener("click", doSomething )
someButton is now registered
, if we click on it
, the event handler is triggered which is
doSomething
doSomething
?
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time π.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Event loop in JS
KP-C
Kevin Powell - Community / help
7mo ago
event.target vs event.currentTarget
KP-C
Kevin Powell - Community / help
3mo ago
event.key === "Shift" vs event.shiftKey
KP-C
Kevin Powell - Community / help
2mo ago
What is the difference betwen .mjs vs .cjs vs .js (Are these used in JavaScript or in node?)
KP-C
Kevin Powell - Community / help
10mo ago