JSFiddle - React, Tailwind, and code Playground
by Mark Coleman
HTML
<table>
<tr id="my_tr" onclick="javascript:my_tr_click();">
<td>
<a id="my_atag" href="javascript:void(0);" onclick="var event = arguments[0] || window.event; my_a_click(event);">Delete</a>
</td>
</tr>
</table>
JavaScript
function my_tr_click() {
alert('tr');
}
function my_a_click(e) {
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
}