HTML DOM FocusEvent
The FocusEvent Object
Events that occur when elements gets or loses focus, belongs to the FocusEvent Object.
FocusEvent Properties and Methods
Property/Method | Description |
---|---|
relatedTarget | Returns the element related to the element that triggered the event |
Inherited Properties and Methods
The FocusEvent inherits all the properties and methods from:
Event Types
These event types belongs to the FocusEvent Object:
Event | Description |
---|---|
onblur | The event occurs when an element loses focus |
onfocus | The event occurs when an element gets focus |
onfocusin | The event occurs when an element is about to get focus |
onfocusout | The event occurs when an element is about to lose focus |