JavaScript – DOM document.activeElement Property
The document.activeElement property returns the HTML element that has focus.
The document.activeElement property returns the HTML element that has focus.
The document.addEventListener() method attaches an event handler to a document.
The document.adoptNode() method adopts a node from another document.
The document.baseURI property returns the base URI of the document.
The document.body property returns the document’s <body> element.
The document.characterSet property returns the character encoding for the document.
The document.close() method closes a document previously opened with the open() method.
The document.cookie property returns a semicolon-separated list of key=value pairs (document cookies).
The document.createAttribute() method creates an attribute and returns the attribute as an Attr object.
The document.createComment() method creates a comment and returns the comment node.
The document.createDocumentFragment() method creates a new document fragment that can be inserted into any document.
The document.createElement() method creates an element node.
The document.createEvent() method creates an event object.
The document.createTextNode() method creates a text node.
The document.defaultView property returns the document’s window object.
The document.designMode property sets or returns if the document is editable.
The document.doctype property returns a document’s doctype object. And doctype.name returns the name of the doctype.
The document.documentElement property returns a document’s element object.
The document.documentURI property sets or returns a document’s location.
The document.domain property returns the domain name of the server the document was loaded from.