The detachEvent Method


The detachEvent Method

You use the detachEvent method to detach an event handler from an event; this method is the complement function to attacheEvent (see earlier in this chapter). You can see the support for this method in Table 6.16.

Table 6.16. The detachEvent Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

detachEvent( event , handlerFunction )

             

x

x

x

 

Returns: Boolean

Like the attacheEvent method, you pass the detachEvent method the event (in quotes) you want to detach and the handler function to detach (not in quotes). See the attacheEvent method for more information.



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

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