In another question answered here I found the following JavaScript code:
function _dom_trackActiveElement(evt) {
if (evt && evt.target) {
document.activeElement = evt.target == document ? null : evt.target;
}
}
But this syntax is unknown to me, could someone explain exactly what
document.activeElement = evt.target == document ? null : evt.target;
does?