以下以单击事件来模拟回车操作<table width="100%" border="1" id="aa" onclick="addRow();" bgcolor="#000000" cellspace=1>
  <tr bgcolor="#FFFFFF">
    <td>&nbsp;</td>
  </tr>
</table>function addRow(){
var obj = document.getElementById("aa");
myNewRow = obj.insertRow();
myNewRow.insertCell();
myNewRow.setAttribute("align","center",0);
myNewRow.setAttribute("height","22",0);
myNewRow.setAttribute("bgcolor","#FFFFFF",0);
}