setNamedItem method

[This documentation is preliminary and is subject to change.]

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);

Standards information

Parameters

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.

setNamedItem was introduced in Microsoft Internet Explorer 6.

See also

Reference

getNamedItem

removeNamedItem

 

 

Build date: 1/26/2012