HTML DOM FocusEvent

❮ DOM Events ❮ Event Objects


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:

The UiEvent

The Event Object


❮ DOM Events ❮ Event Objects

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.