Detaches a behavior from the element.
HRESULT removeBehavior( long cookie, VARIANT_BOOL *pfResult );
- [in] Specifies the identifier that is returned from a previous IHTMLElement2::addBehavior call.
- [out, retval] A pointer to a VARIANT_BOOL that returns one of the following possible values.
- The behavior was successfully removed.
- The behavior was not removed.
Returns S_OK if successful, or an error value otherwise.
This method applies only to attached behaviors, which are the original Dynamic HTML (DHTML) behaviors introduced in Microsoft Internet Explorer 5. Element behaviors are a feature in Internet Explorer 5.5 and cannot be added or removed from an element.