button-error
by sabof
HTML
<table>
<tr id="someid">
<td>
<button type="button" onclick="removeSet(this)">
<img src="images/program/trash.png"/>
</button>
</td>
</tr>
</table>
JavaScript
window.removeSet = function(cell) {
var id = cell.parentNode.getAttribute('id');
alert(id);
}