Function Document.createAttribute
Creates an Attr
of the given name. Note that the Attr
instance can
then be set on an Element
using the setAttributeNode
method.
To create an attribute with a qualified name and namespace URI, use the
createAttributeNS
method.
Prototype
Attr!DOMString createAttribute(
DOMString name
);
Authors
Lodovico Giaretta
Copyright
Copyright Lodovico Giaretta 2016 --