What are DOM Events?
Document Object Model (DOM events) are actions that occurs as a result of the user action or as a result of changes in the state of DOM tree. In this video, you will learn what events are, using examples. Then, you will learn the examples of DOM Events. You will also learn the various categories of DOM events and examples of each of these categories.
00:00 Hello there. Today you will learn what are DOM events. In order to understand the DOM events, let's first understand what are events. An event is a signal that something has occurred. For example, when you browse the YouTube page and find an interesting channel to follow, you hit the subscribe button. This is an event that tells the creator that you are interested in such content. The other example could be when you add items to the cart, in those cases the event is that items have been added to the cart and that you're ready to make a purchase online. Okay, then what are DOM events? DOM events are actions that occur as a result of a user action or as a result of a change in the DOM tree. For example, when a user clicks on a pay on the page, the click event is triggered on the button element of the DOM.
01:50 the error occurred on the load or when the page load is aborted and the user selection of the text on the page. The focus event contains basic event types associated with DOM events. The events included in this category are focus and focusin. These two events are similar, but they're not exactly the same. And blur and focus out. These two events are also similar, but they're not exactly the same. The mouse event contains basic event types associated with DOM events. There are many events included in this category including click and mouseover. The wheel event contains events related to rotation of a pointer device such as a trackpad or movements on the laptop. The only event it contains is called wheel. The input events are sent as notification when the DOM is updated. The event included in this category are beforeinput and input. The keyboard events are device dependent events.