event code

Code that is executed when an event occurs. The code can also be called programmatically. See also event.