nscyiw
Last Updated: February 25, 2016
·
756
· mlb

Event bubbling with focus and blur events

In the DOM, focus and blur don't bubble. If you want to delegate these events you have to :

  • In browsers that support addEventListener, set the third arguments, capture to true.
  • In browsers that use attachEvent, listen to focusin for focus and focusout for blur.