Click to return to the Reusing Browser Technology home page    
IHTMLElement::insertAdjac...     IHTMLElement::scrollIntoV...     IHTMLElement Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement::removeAttribute Method


Removes the given attribute from the element.

Syntax

HRESULT removeAttribute(
    BSTR strAttributeName,
    VARIANT_BOOL fCaseSensitive,
    VARIANT_BOOL *pfSuccess
);

Return Value

Returns S_OK if successful, or an error code otherwise.

Parameters

strAttributeName
String (BSTR) that specifies the name of the attribute to remove.
fCaseSensitive
Boolean value that specifies 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 VARIANT Boolean structure that receives VARIANT_TRUE if the function succeeds, or VARIANT_FALSE otherwise.

Remarks

If two or more attributes have the same name (differing only in uppercase and lowercase letters) and fCaseSensitive is VARIANT_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.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

getAttribute, setAttribute


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.