© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
F. StrazzulloFrameworkless Front-End Developmenthttps://doi.org/10.1007/978-1-4842-9351-5_4

4. Managing DOM Events

Francesco Strazzullo1  
(1)
TREVISO, Treviso, Italy
 

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 ...

Get Frameworkless Front-End Development: Do You Control Your Dependencies or are They Controlling You? now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.