共用方式為


setAttributeNodeNS method

Sets an IHTMLDOMAttribute2 interface as part of the object.

 

Syntax

IHTMLDOMAttribute retVal = object.setAttributeNodeNS(pattr);

Parameters

Standards information

Remarks

If the object already contains an attribute with the same name, the new attribute replaces the original attribute.

See also

IHTMLElement6::setAttributeNode