Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
createAttributeNS
go
Collapse the table of content
Expand the table of content

createAttributeNS method

Creates a reference to an attribute object that is associated with an XML namespace.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4Internet Explorer 9

 

Syntax

var ppAttribute = document.createAttributeNS(pvarNS, bstrAttrName);

Parameters

pvarNS [in]

Type: Variant

A Variant value that contains the name of the desired namespace or a null value if no namespace is desired.

bstrAttrName [in]

Type: BSTR

A String value that contains the name of the desired attribute.

ppAttribute [out, retval]

Type: IHTMLDOMAttribute

A reference to an attribute object that contains the new attribute.

Return value

Type: IHTMLDOMAttribute

A reference to an attribute object that contains the new attribute.

Standards information

Remarks

The createAttributeNS method is supported only for XML documents.

See also

document
createAttribute

 

 

Show:
© 2015 Microsoft