取消气泡事件,使得事件不再向上传递,下面的代码你去掉event.cancelBubble=true看看差异<body onclick="alert(this.tagName)">
<table width=300 height=100 border=1>
<tr><td onclick="alert(this.tagName);event.cancelBubble=true">&nbsp;
</td></tr>
</table>
</body>