Chapter 10
Making Things Happen with Events
IN THIS CHAPTER
Stepping through the JavaScript runtime model
Running through the event loop
Introducing the Event object
Adding event listeners
Dispatching events
Adding and removing event listeners
Stopping default actions from happening
“You have power over your mind — not outside events. Realize this, and you will find strength.”
— MARCUS AURELIUS
If you’re read the earlier chapters in this book, you've reached an important milestone in your JavaScript education. Until this point in the book, I have described the JavaScript language itself, largely without considering the environment in which it's running. Now it's time to shift to talking about taking JavaScript to the people.
Events are things that happen outside of your program, such ...
Get JavaScript All-in-One For Dummies 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.