focusin and focusout

The bubbling versions of the focus and blur events, which fire as focus moves into or out of an element and travel up to its ancestors.

In more detail

Each event's relatedTarget tells you where focus came from or is going. They make it possible to delegate focus handling, for example to highlight a whole form row when any field inside it is focused.

Related terms

Taught in

References