From the course: The DOM in JavaScript, jQuery, AngularJS, and React

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Event objects

Event objects

From the course: The DOM in JavaScript, jQuery, AngularJS, and React

Start my 1-month free trial

Event objects

- [Instructor] The event interface serves as a base interface for many types of events in the DOM. Now events can be user-generated such as a mouse-click or a keyboard click, but sometimes they are also API-generated like for example maybe you might run animation and then the animation is stopped and then it would trigger an event or maybe you have a timer set and then the timer expired Or even a web worker process ended and it would trigger some type of event, so all of these are many types of events. A very popular set of events is what's called a bubbling event and a capturing event. So these two events are known as bubbling and capturing and they describe the flow of events in a web program. So, these events are usually associated with a mouse event, especially a mouse click. And again, they define which order should the event take place which means which tag should receive the event first, whether the inner tag or the outer tag. By saying that I mean in the form of HTML you can…

Contents