Compare document.activeElement with the element you want to check for focus. If they are the same, the element is focused; otherwise, it isn't.
確定! 回上一頁