Export (0) Print
Expand All

clearAttributes method

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

Removes all attributes and values from the object.

Syntax


HRESULT retVal = object.clearAttributes();

Standards information

There are no standards that apply here.

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The IHTMLElement2::clearAttributes method clears only persistent HTML attributes. The ID attribute, styles, and script-only properties are not affected.

See also

Reference
IHTMLElement2::mergeAttributes
Conceptual
About the W3C Document Object Model

 

 

Build date: 6/6/2012

Community Additions

Show:
© 2015 Microsoft