<div id="div1" οnclick="show(this)">jfdsjafeafre</div>
<table id="table1" οnclick="show(this)">
<tr id="tr1" οnclick="show(this)">
<td id="td1" οnclick="show(this)">
d
</td>
</tr>
</table>
<span id="span1" οnclick="show(this)">d</span>
<script>
function show(obj){
alert(obj.tagName);
}
</script>