Gareth Barlow

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromGareth Barlow
ToMe
SubjectScript error for DOM
Date17 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
FromMe
ToGareth Barlow
SubjectRe: Script error for DOM
Date17 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/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.