The FocusEvent
interface represents focus-related events, including focus
, blur
, focusin
, and focusout
.
Constructor
FocusEvent()
- Creates a
FocusEvent
event with the given parameters.
Properties
This interface also inherits properties from its parent UIEvent
, and indirectly from Event
.
FocusEvent.relatedTarget
- Is an
EventTarget
representing a secondary target for this event. In some cases (such as when tabbing in or out a page), this property may be set tonull
for security reasons.
Methods
This interface has no specific methods. It inherits methods from its parent UIEvent
, and indirectly from Event
.
Specifications
Specification | Status | Comment |
---|---|---|
UI Events The definition of 'FocusEvent' in that specification. |
Working Draft | |
Document Object Model (DOM) Level 3 Events Specification The definition of 'FocusEvent' in that specification. |
Obsolete | Initial definition. |
Browser compatibility
BCD tables only load in the browser
See also
- The
Event
base interface