在ASP网页中,在文本域中输入数值,单击“提交”按钮后连接到相应的网页,代码怎么写?
以下是我写的代码,是不对的!<formaction=""method="post"name="form1"id="form1"><spanclass="STYLE13">...
以下是我写的代码,是不对的!
<form action="" method="post" name="form1" id="form1">
<span class="STYLE13">业务单号</span>
<input name="text" type="text" id="text" size="8" maxlength="8"/>
<input type="button" onclick= "doCheck() " value="查询" />
<script language= "javascript ">
{
if(document.form1.text.value= "000001 ")
href= "dingdanchaxun/000001.asp ";
}
</script>
</form>
哪位高手帮助一下我,不胜感激!! 展开
<form action="" method="post" name="form1" id="form1">
<span class="STYLE13">业务单号</span>
<input name="text" type="text" id="text" size="8" maxlength="8"/>
<input type="button" onclick= "doCheck() " value="查询" />
<script language= "javascript ">
{
if(document.form1.text.value= "000001 ")
href= "dingdanchaxun/000001.asp ";
}
</script>
</form>
哪位高手帮助一下我,不胜感激!! 展开
展开全部
<span class="STYLE13">业务单号</span>
<input name="text" type="text" id="text" size="8" maxlength="8"/>
<input type="button" onclick= "doCheck() " value="查询" />
<script type="text/javascript">
function doCheck() {
if (document.getElementById('text').value == "000001") {
window.location.href = "dingdanchaxun/000001.asp ";
}
}
</script>
<input name="text" type="text" id="text" size="8" maxlength="8"/>
<input type="button" onclick= "doCheck() " value="查询" />
<script type="text/javascript">
function doCheck() {
if (document.getElementById('text').value == "000001") {
window.location.href = "dingdanchaxun/000001.asp ";
}
}
</script>
展开全部
<form action="相应的网页地址" method="post" name="form1" id="form1">
<span class="STYLE13">业务单号</span>
<input name="text" type="text" id="text" size="8" maxlength="8"/>
<input type="button" onclick= "doCheck() " value="查询" />
<script language= "javascript ">
{
if(document.form1.text.value= "000001 ")
href= "dingdanchaxun/000001.asp ";
}
</script>
</form>
<span class="STYLE13">业务单号</span>
<input name="text" type="text" id="text" size="8" maxlength="8"/>
<input type="button" onclick= "doCheck() " value="查询" />
<script language= "javascript ">
{
if(document.form1.text.value= "000001 ")
href= "dingdanchaxun/000001.asp ";
}
</script>
</form>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<form action="你连接相应页的文件名称" method="post" name="form1" id="form1">
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询