Use the `document.hasFocus()` method to check if a window has focus, e.g. `if (document.hasFocus()) {}`. The method returns a boolean value ...
確定! 回上一頁