JavaScript – DOM document.adoptNode() Method
The document.adoptNode() method adopts a node from another document.
The document.adoptNode() method adopts a node from another document.
The document.close() method closes a document previously opened with the open() method.
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.hasFocus() method returns “true” if the document, or any element in the document, has focus. Otherwise it returns “false”.
The document.importNode() method imports a node from another document, and with the second parameter set to true, will also import child nodes.
The document.normalize() method removes empty text nodes, and joins adjacent text nodes.
The document.removeEventListener() method removes an event handler from a document.
The document.write() method writes directly to an open HTML document.
The document.writeln() method writes directly to an open HTML document, with the addition of writing a newline character after each statement.
The Element addEventListener() method attaches an event handler to an element.
The Element appendChild() method appends an element as the last child of a parent element.
The Element click() method simulates a mouse-click on an element.
The Element cloneNode() method creates a copy of a node (and all its attributes and their values), and returns the clone.