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
Show: