Compartir a través de


removeNamedItem method

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

 

Syntax

IHTMLDOMAttribute retVal = object.removeNamedItem(bstrName);

Parameters

Standards information

Remarks

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.

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