In the last chapter, you learned about rendering or, more generally, how to draw DOM elements that match your data. But a web application is not a painting; its contents change over time. The cause of these changes is events.
Events, even though they are created by the user or the system, are a crucial aspect of the DOM API. This chapter aims to explain how to manage these events in a frameworkless application.
The first part of the chapter is an introduction to the DOM Events API. You will learn ...