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

setNamedItem method

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

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

Syntax


IHTMLDOMAttribute retVal = object.setNamedItem(ppNode);

Parameters

ppNode [in]

Type: IHTMLDOMAttribute

Pointer to an IHTMLDOMAttribute interface.

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.

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

See also

Reference
IHTMLAttributeCollection2::getNamedItem
IHTMLAttributeCollection2::removeNamedItem

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.