Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

removeNamedItem method

Removes an IHTMLDOMAttribute specified with the IHTMLDOMAttribute2::name property from an element by using the IHTMLAttributeCollection interface.

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



IHTMLDOMAttribute retVal = object.removeNamedItem(bstrName);


bstrName [in]

Type: BSTR

A BSTR that specifies the name of an IHTMLDOMAttribute to remove.

Standards information


An IHTMLDOMAttribute that is removed with this method reverts to the default value of the IHTMLDOMAttribute when applicable. This method returns a script error if the user attempts to remove a non-existent attribute node.

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



Community Additions

© 2015 Microsoft