event handler

Trigger-activated code block

An event handler is a piece of code that responds when something specific happens in a program—a mouse click, a key press, a file finishing its download.

The handler waits for its designated event, then executes: The event handler updates the display whenever the user submits the form.

Also called a callback or listener.

programming

callback

Follow-up audition invitation

onload · keypress · mouseover · invoke · execute · bind · attach · register · dispatch · fire

architecture

delegate

Entrust authority to another

  • hookCurved catching device
  • signalMessage-conveying cue
  • slotNarrow slit for insertion

middleware · asynchronous · concurrency · decoupling · loose coupling · subscription

interaction

click

Brief sharp noise

  • tapValve controlling liquid flow
  • swipeQuick sliding motion
  • scrollWound document of parchment

hover · focus · blur · drag · drop · resize · submit · input · keydown · mousedown

Categories
Opposites
programming paradigm for detecting/responding to state changes

event handlerpolling

Systematic opinion gathering

code execution model

event handlerinline code

batch process

Family

event, handle, handled, handling, handles, handler, uneventful, eventful, handlers

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Abstract · Rated G