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
ReadonlyCDATA_node is a CDATASection node.
ReadonlycharacterThe Document.characterSet read-only property returns the character encoding of the document that it's currently rendered with.
ReadonlycharsetReadonlychildReadonlychildThe read-only childNodes property of the Node interface returns a live NodeList of child nodes of the given element where the first child node is assigned index 0. Child nodes include elements, text and comments.
ReadonlychildrenReturns the child elements.
ReadonlyCOMMENT_node is a Comment node.
ReadonlycompatThe Document.compatMode read-only property indicates whether the document is rendered in Quirks mode or Standards mode.
ReadonlycontentThe Document.contentType read-only property returns the MIME type that the document is being rendered as. This may come from HTTP headers or other sources of MIME information, and might be affected by automatic type conversions performed by either the browser or extensions.
The Document property cookie lets you read and write cookies associated with the document. It serves as a getter and setter for the actual values of the cookies.
ReadonlycurrentThe Document.currentScript property returns 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