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

clearAttributes method

Removes all attributes and values from the object.

Syntax


HRESULT retVal = object.clearAttributes();

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.

Standards information

There are no standards that apply here.

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

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.