Event reference
DOM Events are sent to notify code of interesting things that have taken place. Each event is represented by an object which is based on the Event
interface, and may have additional custom fields and/or functions used to get additional information about what happened. Events can represent everything from basic user interactions to automated notifications of things happening in the rendering model.
This article offers a list of events that can be sent; some are standard events defined in official specifications, while others are events used internally by specific browsers; for example, Mozilla-specific events are listed so that add-ons can use them to interact with the browser.
Focus events
Event Name | Fired When |
---|---|
focus |
An element has received focus (does not bubble). |
blur |
An element has lost focus (does not bubble). |
focusin |
An element is about to receive focus (does bubble). |
focusout |
An element is about to lose focus (does bubble). |