Friday, February 2nd, 2007
Are you the kind of person who has always written
document.addEventListener("keypress", someFunc, false) and never really looked into the false bit. You just always keep it as false as that is how you copied it from some example the first time?
Hallvord R. M. Steen explains what happens when you go true and capture events:
If you call addEventListener with true as the third argument you create a capturing event. The difference from a normal event is that the capturing listener detects all events in the document before they are sent to the actual target of the event.
Posted by Dion Almaer at 2:31 am