javascript event listener multiple events

 

 

 

 

What you are really looking for is JavaScript Event Delegation. In your case, you have BUTTON elements, which Im going to assume are