ABSTRACT

We can associate this function to the click event of the button, but first let’s clean it up a bit. We change the name of the handler with a meaningful name, and we can get rid of the event as a parameter (we do not need it). So our new function will look like the following.