HTML DOM FocusEvent
The FocusEvent Object
The FocusEvent Object handles events that occur when elements gets or loses focus.
Focus Events
Event | Occurs When |
---|---|
onblur | An element loses focus |
onfocus | An element gets focus |
onfocusin | An element is about to get focus |
onfocusout | An element is about to lose focus |
FocusEvent Properties
Property | Returns |
---|---|
relatedTarget | The element that triggered the event |
Inherited Properties and Methods
The FocusEvent inherits all the properties and methods from: