请问各位,这段js代码有何错误,提交按扭不能提交到下一页面?谢谢!!!
5iasp 博客专家认证 2004-06-18 04:56:44
<html>
<head>
<script language="javascript">
function submitit(theform)
{
if (confirm('你确实吗?'))
{
theform.submit();
}
}
</script>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../putong_1t">
<title>会议室申请审批</title>
</head>
<body>
<%
id=request("id")
page=request("page")
%>
<form method="POST" action="shengpiresult.asp" name="myform">
<input type="hidden" name="id" value="<%=id%>">
<input type="hidden" name="page" value="<%=page%>">
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750" id="AutoNumber1">
<tr>
<td width="100%" colspan="2">
<p align="center"><b>会议室申请审批</b></td>
</tr>
<tr>
<td width="21%">
<p align="center">审批结果</td>
<td width="79%">
<input type="radio" value="1" name="shengpiresult" checked>审核通过<input type="radio" value="2" name="shengpiresult">未通过</td>
</tr>
<tr>
<td width="21%">
<p align="center">审核说明</td>
<td width="79%"><textarea rows="9" name="shengpibeizhu" cols="57"></textarea></td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="center">
<input type="button" value="提交" name="submit" class="button" language='JavaScript' onclick="submitit(myform)"></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>