Click to return to the Reusing Browser Technology home page    
IHTMLDocument3::createTex...     IHTMLDocument3::get_child...     IHTMLDocument3 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLDocument3::detachEvent Method


Unbinds the specified object from the event, so that the object stops being called whenever the event fires.

Syntax

HRESULT detachEvent(
    BSTR sEvent, 
    IDispatch *pIDisp
);

Parameters

sEvent
String (BSTR) that specifies the name of the event.
pIDisp
Address of an IDispatch interface that returns an object previously set using attachEvent.

Return Value

Returns S_OK if the function was bound successfully, or an error code otherwise.

See Also

attachEvent



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.