Compartir a través de


setNamedItem method

Adds an IHTMLDOMAttribute to an element by using an IHTMLAttributeCollection interface.

 

Syntax

IHTMLDOMAttribute retVal = object.setNamedItem(ppNode);

Parameters

Standards information

Remarks

An IHTMLDOMAttribute that is set with this method does not have to apply to the element.

If an IHTMLDOMAttribute with the same name is already present, it is replaced by the new IHTMLDOMAttribute.

IHTMLAttributeCollection4::setNamedItem was introduced in Microsoft Internet Explorer 6.

See also

Reference

IHTMLAttributeCollection4::getNamedItem

IHTMLAttributeCollection4::removeNamedItem