Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

setAttributeNS method

Sets the value of the specified attribute within the specified namespace.

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

Syntax


HRESULT retVal = object.setAttributeNS(pvarNS, bstrAttributeName, pvarAttributeValue);

Parameters

pvarNS [in]

Type: VARIANT

The namespace URI that defines the desired attribute or a NULL value.

bstrAttributeName [in]

Type: BSTR

The name of the desired attribute within the specified namespace.

pvarAttributeValue [in]

Type: VARIANT

The string, number, or Boolean value to assign to the attribute.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The operation completed successfully.

 

Standards information

See also

IHTMLElement6::setAttribute

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.