An event handler is a part of a computer program formed to tell the program how to act in response to a definite event.