IHTMLStyle::removeAttributeIHTMLStyle::removeAttribute*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLStyle::put_zIndex
*Next Topic: IHTMLStyle::setAttribute

IHTMLStyle::removeAttribute


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

Removes the given attribute from the element.

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.

See also getAttribute, setAttribute


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.