createElement (DOMDocument - JavaScript)

Creates an element of the type specified, or of the given qualified name and namespace URI.

Defined in

DOMDocument

Syntax

createElement(tagName:string) : DOMElement

createElement(namespaceURI, qualifiedName:string) : DOMElement

Parameters Description
tagName
namespaceURI
qualifiedName