createDocument (DOMImplementation - JavaScript)

Creates a DOM Document object of the specified type with its document element.

Syntax

createDocument(namespaceURI:string, qualifiedName:string, doctype:DocumentType) : DOMDocument