The event type is a string that specifies what kind of event occurred. The type “mousemove,” for example, means that the user moved the mouse. The type “keydown” means that a key on the keyboard was pushed down. And the type “load” means that a document (or some other resource) has finished loading from the network. Because the type of an event is just a string, it is sometimes called an event name, and indeed, we use this name to identify the specific kind of event we’re talking about.
The event target is the object on which the
event occurred or with which the event is associated. When we speak of an
event, we must specify both the type and the target. A load event on a
Window, for example, or a click event on a