Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
HRESULT detachEvent( BSTR event, IDispatch *pDisp );
Returns S_OK if successful, or an error value otherwise.
Behaviors that attach to events using the IHTMLWindow3::attachEvent method must explicitly call the IHTMLWindow3::detachEvent method to stop receiving notifications from the page when the ondetach event fires. Behaviors that attach to events using the PUBLIC:ATTACH element automatically stop receiving notifications when the behavior detaches from the element, and thus do not need to call the IHTMLWindow3::detachEvent method.