Going Global: Global Events

In this lesson, let's learn how to handle global events. Let's begin!

You already used a few events in exercises, such as the onload event when you set the onload attribute of the <body> tag, or the onclick event when you set the onclick attribute of a <button> element.

HTML5 defines dozens of events that are triggered either as a result of user interactions, or as a result of state changes in the document’s lifecycle. You can attach event handler scripts to HTML elements. These handlers are fired when the specific event is triggered.

📜NOTE: ...

Access this course and 1400+ top-rated courses and projects.