stopPropagation
on a child will stop that event from happening on the
parent (the entire ancestors)
preventDefault
on a child will stop the event on the child but it
will happen on it's parent (and the ancestors too!)
Now in your code which is the parent? which is the child? img
is child tr
is parent(well grandparent to be honest), So guess where the stopPropagation
code should be.