WebGlossary.info
Event handler
- A mechanism to be notified of DOM events as well as changes in the browser or operating system environment. Events are defined and documented for the JavaScript objects that emit them. There are two recommended approaches for registering handlers: Event handler code can be made to run when an event is triggered by assigning it to the target element’s corresponding
onevent
property, or by registering the handler as a listener for the element using the addEventListener()
method. ← MDN Web Docs
- Previous term: Event
- Next term: Event loop
- Random term: Nmap