Izzy,

Using event.target may not work as intended when clicking child
elements of the element you attached the event to:
http://jsfiddle.net/timwienk/hNMm4/

In the event handler `this` refers to the element the event fired on.
event.target is the element that was the event's target.

(Sometimes this actually *is* the intended effect, and it's actually
the basis of how delegation works. Attach an event to a parent
element, but only do stuff when `event.target.match(yourSelector)`).

Reply via email to