Webpages know when to react to user interactions because of events. We've already been using an event in our code.
Every time we pressed a button with the onclick attribute, we were using the click event to trigger a function call.
onclick
click