Section 25.92. Element.detachEvent( ): delete an event listener


25.92. Element.detachEvent( ): delete an event listener

IE 4:

25.92.1. Synopsis

 void detachEvent(String type,                  Function listener) 

25.92.1.1. Arguments

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.

25.92.2. Description

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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net