Contents Index Topic Contents | ||
Previous Topic: IHTMLElement::getAttribute Next Topic: IHTMLElement::put_className |
IHTMLElement::removeAttribute
HRESULT removeAttribute( BSTR strAttributeName, VARIANT_BOOL fCaseSensitive, VARIANT_BOOL *pfSuccess );Removes the given attribute from the element.
- Returns S_OK if successful, or an error value otherwise.
- strAttributeName
- String specifying the name of the attribute to remove.
- fCaseSensitive
- Boolean value specifying whether to use a case-sensitive search to locate the attribute. If TRUE, the uppercase and lowercase letters in strAttributeName must match exactly those in the attribute name.
- pfSuccess
- Address of a variable that receives TRUE if the function succeeds, or FALSE otherwise.
If two or more attributes have the same name (differing only in uppercase and lowercase letters) and fCaseSensitive is FALSE, this method removes only the last attribute (the last to be created with this name). All other attributes of the same name are ignored.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.