Document - Web APIs | MDN (original) (raw)
Constructor
Creates a new Document object.
Instance properties
This interface also inherits from the Node and EventTarget interfaces.
Document.activeElement Read only
Returns the Element that currently has focus.
Document.activeViewTransition Read only
Returns a ViewTransition instance representing the view transition currently active on the document, or null if there is no active view transition.
Add an array of constructed stylesheets to be used by the document. These stylesheets may also be shared with shadow DOM subtrees of the same document.
Returns the or node of the current document.
Document.characterSet Read only
Returns the character set being used by the document.
Document.childElementCount Read only
Returns the number of child elements of the current document.
Document.children Read only
Returns the child elements of the current document.
Document.compatMode Read only
Indicates whether the document is rendered in quirks or strict mode.
Document.contentType Read only
Returns the Content-Type from the MIME Header of the current document.
Document.currentScript Read only