Add and Remove Event Listeners by Program

There are two ways to add event listeners by program.