Email conversation
From | Gareth Barlow |
To | Me |
Subject | Script error for DOM |
Date | 17 May 2007 08:58 |
Hello
On your page http://www.howtocreate.co.uk/tutorials/javascript/domevents,
you refer to IE as using the event function "removeEvent". I believe this
should actually be "detachEvent". I have tested this.
Otherwise this page was very helpful, thank you. I finally understand these
darn events.
-- Gareth
From | Me |
To | Gareth Barlow |
Subject | Re: Script error for DOM |
Date | 17 May 2007 13:54 |
Gareth,
> you refer to IE as using the event function "removeEvent". I believe this
> should actually be "detachEvent". I have tested this.
Thanks very much for this. Yes, you are right, the correct name is
detachEvent. It's my own fault; I actually wrote that particular chapter
of the tutorial without any access to IE or the Internet (stuck in a
hostel), and apparently forgot to test that part of it, since all the
demos attach events, none of them remove the listeners again. Oops.
Corrected now.
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/