files/en-us/web/api/focusevent/index.md
{{APIRef("UI Events")}}
The FocusEvent interface represents focus-related events, including {{domxref("Element/focus_event", "focus")}}, {{domxref("Element/blur_event", "blur")}}, {{domxref("Element/focusin_event", "focusin")}}, and {{domxref("Element/focusout_event", "focusout")}}.
{{InheritanceDiagram}}
FocusEvent event with the given parameters.This interface also inherits properties from its parent {{domxref("UIEvent")}}, and indirectly from {{domxref("Event")}}.
null for security reasons.This interface has no specific methods. It inherits methods from its parent {{domxref("UIEvent")}}, and indirectly from {{domxref("Event")}}.
When focus is shifted from element A to element B, focus events are dispatched in the following order:
blur: sent after element A loses focus.focusout: sent after the blur event.focus: sent after element B receives focus.focusin: sent after the focus event.{{Specifications}}
{{Compat}}