Focus events include a relatedTarget property

added by JavaScript Kicks
9/9/2019 7:12:49 AM

219 Views

Today I came across an MDN page describing the relatedTarget property of focus events. blur, focus, focusin, and focusout count as focus events. It turns out that if you attach a focus event listener the fired event will include not only a target element but also a relatedTarget element.


0 comments