subscribe

Subscribing allows you to specify a function to call when an event is raised. This is referred to as binding to an event. The bound function is referred to as a handler.