behaviorCookie property

Retrieves a cookie identifying the rendering behavior on which this event was fired.


HRESULT value = object.get_behaviorCookie(long* p);

Property values

Type: long

the behavior cookie.


The IHTMLEventObj3::behaviorCookie property is only applicable for rendering behaviors.

An element may have more than one attached rendering behavior. The IHTMLEventObj3::behaviorCookie property identifies the rendering behavior that was hit and corresponds to the identifier returned by the IHTMLElement2::addBehavior method.