Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
detachEvent
Collapse the table of content
Expand the table of content

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

event [in]

Type: BSTR

BSTR that specifies any of the MSHTML Event DispInterfaces.

pDisp [in]

Type: IDispatch

Pointer to an IDispatch interface previously set using the IHTMLNamespace::attachEvent method.

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft