When trying to place an onclick function on a link in a table cell, which is part of a row which also has an onclick event, leads to both onclick functions being called.
After looking into how to go around this issue I used
1 2 3 |
e.stopPropagation(); |
This worked perfectly, stopping the parent onclick from firing, but when it came to testing in dreaded IE I found it wasn’t supported.
So I tried changing to:
1 2 3 |
e.cancelBubble = true |
This works just as well, not only in Firefox but IE too.