eventhandler
nounUK /ɪˈvɛntˌhændlə/
US /ɪˈvɛntˌhændlər/
A piece of code that does something when an action happens.
The button's eventhandler shows a message when you click it.
RELATED WORDS
OTHER MEANINGS
2. A routine that responds to user actions like clicks or key presses.
Attach an eventhandler to the form so it reacts to typing.
3. A function registered to run when a specific system event occurs.
The eventhandler fired as soon as the file finished loading.
4. In web development, a script bound to an element to manage interactions.
She wrote an eventhandler for the mouseover effect on the menu.