Click to return to the Reusing Browser Technology home page    
IHTMLElement2::releaseCap...     IHTMLElement2::removeExpr...     IHTMLElement2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement2::removeBehavior Method


Removes the specified behavior from the list of behaviors influencing this element.

Syntax

HRESULT removeBehavior(
   long behaviorID,
   VARIANT_BOOL *pfResult
);

Parameters

behaviorID
Long variable that returns a handle obtained from the addBehavior method, representing the behavior's ID.
pfResult
Address of a VARIANT Boolean structure returning TRUE or FALSE depending on success or failure of the method.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

addBehavior



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.