event procedure

A procedure automatically invoked in response to an event initiated by the user, program code, or triggered by the system.