用超链接提交表单的值
分类:电脑知识 发表于:2010-12-20 20:55:15 评论(2)
<script LANGUAGE = "JavaScript" >
function checkvalue()
{
document.form1.action="XXX.htm";
document.form1.submit();
return true;
}
</script>
<form name="form1" method="post" action="">
<table width="200" border="1">
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form>
<a href="#" onClick="javascript:return checkvalue();">链接</a>