focus and blur events

Events fired when an element gains keyboard focus (focus) or loses it (blur); they do not bubble.

In more detail

Because they do not bubble, a delegated listener on an ancestor never sees them unless it uses capture. focusin and focusout are the bubbling versions.

Related terms

Taught in

References