ReadonlyactiveReturns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
ReadonlyactiveThe activeViewTransition read-only property of the Document interface returns a ViewTransition instance representing the view transition currently active on the document.
Returns or sets the color of an active link in the document body. A link is active during the time between mousedown and mouseup events.
ReadonlyallThe Document interface's read-only all property returns an HTMLAllCollection rooted at the document node.
ReadonlyanchorsThe anchors read-only property of the Document interface returns a list of all of the anchors in the document.
ReadonlyappletsThe applets property of the Document returns an empty HTMLCollection. This property is kept only for compatibility reasons; in older versions of browsers, it returned a list of the applets within a document.
ReadonlyATTRIBUTE_ReadonlybaseThe read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.
The deprecated bgColor property gets or sets the background color of the current document.
The Document.body property represents the
The
Documentinterface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.MDN Reference