createAttributeNS (DOMDocument - JavaScript)

Creates an attribute of the given name, or qualified name and namespace URI.

Defined in

DOMDocument

Syntax

createAttributeNS(name:string) : DOMAttr

createAttributeNS(namespaceURI:string, qualifiedName:string) : DOMAttr

Parameters Description
name
namespaceURI
qualifiedName