首先用innerHTNL把表格里的内容读取出来,之后可以用GET方式提交,也可以将内容赋给一个隐藏表单,通过POST提交
[CODE]<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>测试文档</title>
<script language="javascript">
function ShowTd(){
var tdContent = document.getElementById("td").innerHTML;
var hiddenObj = document.form1.hiddenField;
hiddenObj.value = tdContent;
alert(hiddenObj.value);
}
</script>
</head>
<body>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td id="td">这是显示在单元格里的内容!</td>
</tr>
</table>
<form id="form1" name="form1" method="post" action="">
<input type="hidden" name="hiddenField" />
<input type="button" value="Click" onclick="ShowTd();" />
</form>
</body>
</html>[/CODE]