We know that the interaction between JavaScript and HTML is achieved through events. An event is a certain action performed by the user or the browser itself, such as click, mouseover, load..., and the function that responds to the event is called an event processing function ( or event listener).