Compartilhar via


detachEvent method

Unbinds the specified function from the event, so that the object stops receiving notifications when the event fires.

Syntax

HRESULT retVal = object.detachEvent(event, pDisp);

Parameters

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

See also

Reference

IHTMLNamespace::attachEvent

Conceptual

Introduction to DHTML Behaviors

Introduction to Viewlink

About Element Behaviors