在<FORM>标签中加ID属性,在javascript中就可能通过ID来访问表格,例如:
<table id="tbTest">
<tr><td></td></tr>
</table>
<a href="#" onClick="alert(tbTest.tagName);">Click</a>
<table id="tbTest">
<tr><td></td></tr>
</table>
<a href="#" onClick="alert(tbTest.tagName);">Click</a>
table也不在form内
document.all.tags("TABLE")[2] //the third table