© Francesco Strazzullo 2019
F. StrazzulloFrameworkless Front-End Developmenthttps://doi.org/10.1007/978-1-4842-4967-3_3

3. Managing DOM Events

Francesco Strazzullo1 
TREVISO, Treviso, Italy

In the last chapter, we talked about rendering, or more generally, how to draw DOM elements that match with our data. But a web application is not a painting; its contents change over time. The cause of these changes is events.

Events, regardless that they are created by the user or by the system, are a very important aspect of the DOM API. The purpose of this chapter is to understand 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 what an event handler is and how ...

Get Frameworkless Front-End Development: Do You Control Your Dependencies Or Are They Controlling You? now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.