table不象form这样是不行的,可以直接写
document.getElementById("properties").value

解决方案 »

  1.   

    用 document.getElementById("tableid").innerText
    或 document.all.tableid。innerText
      

  2.   

    <HTML><HEAD>
    <script>
       function myclick()
       {
       var str;
       str=document.getElementById("A1").innerText;
       alert(str);
       }
     </script>
    </HEAD>
    <BODY>
    <table id="table1ID">
       <tr id="A1">aaaa</tr>
      <tr id="B1">bbbb</tr>
        <tr id="C1">cccc</tr>
      </TABLE> 
     <input id=button1 onclick=myclick() type=button value=clikc name=button1></BODY></HTML>
      

  3.   

    tableId.rows[0].cells[0].innerText