28,391
社区成员
发帖
与我相关
我的任务
分享
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="Untitled-1.asp">
<table width="600" border="0" align="center" cellspacing="1" id="test">
<tr>
<td>sdf</td>
<td>wer</td>
<td>wer</td>
<td>wer</td>
</tr>
<tr>
<td>sdf</td>
<td>we</td>
<td>wer</td>
<td>we</td>
</tr>
<tr>
<td>sdf</td>
<td>wer</td>
<td>sss</td>
<td>wer</td>
</tr>
<tr>
<td>sdf</td>
<td>sdf</td>
<td>ssss</td>
<td>wer</td>
</tr>
</table>
<div align="center">
<input type="hidden" name="submitvalue" id="submitvalue" />
<input type="button" name="button" id="button" value="按钮" onclick='getvalue();'/>
</div>
</form>
</body>
</html>
<script>
function getvalue(){
var str = document.getElementById('test').outerHTML;
alert(str);
document.all.submitvalue.value=str;
form1.submit();
}
</script>