3 ms·
The "event.target" approach is no good when the click handler is attached to a parent container with children. 'event.target' in that case will be the children
by akshayr 16y ago
The "event.target" approach is no good when the click handler is attached to a parent container with children. 'event.target' in that case will be the children instead of the parent. An example is here - http://gist.github.com/652212#file_hn http://gist.github.com/652212#file_hn comment