在<FORM>标签中加ID属性,在javascript中就可能通过ID来访问表格,例如:
<table id="tbTest">
<tr><td></td></tr>
</table>
<a href="#" onClick="alert(tbTest.tagName);">Click</a>

解决方案 »

  1.   

    我的问题在于不能给该table加id,
    table也不在form内
      

  2.   

    how many tables do you have? if you know the position of the specific table among all tables on the page, you can do
    document.all.tags("TABLE")[2] //the third table
      

  3.   

    不管TABLE是否在不在FORM内都可能加ID属性的,你可以试一试
      

  4.   

    thank you very much?怎样给你加分呢?