August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Element.detachEvent( ): delete an event listener — IE 4:
void detachEvent(Stringtype, Functionlistener)
type
The type of event for which the event listener is to be deleted, with an “on” prefix. For example: “onclick”.
listener
The event-listener function that is to be removed.
This method undoes the event-handler function registration
performed by the attachEvent( )
method. It is the IE-specific analog to removeEventListener( ). To remove an event
handler function for an element, simply invoke detachEvent with the same arguments you
originally passed to attachEvent(
).
This method is also defined by, and works analogously on, the Document and Window objects.
Read now
Unlock full access