<form id="form1" name="form1" method="post" action="">
<formid="form1"name="form1"method="post"action=""><inputtype="text"name="username"/><...
<form id="form1" name="form1" method="post" action="">
<input type="text" name="username" />
<input type="submit" name="Submit" value="登录" />
</form>
能不能改成 输33点登陆就跳转33.asp 输22 就跳转到22.asp 展开
<input type="text" name="username" />
<input type="submit" name="Submit" value="登录" />
</form>
能不能改成 输33点登陆就跳转33.asp 输22 就跳转到22.asp 展开
1个回答
展开全部
你是初学,慢慢体会吧!
<form id="form1" name="form1" method="post" action="" onSubmit="jump()">
<input type="text" name="username" id="username" />
<input type="submit" name="Submit" value="登录" />
</form>
<script>
function jump()
{
form1.action=document.getElementById("username").value+".asp";
form1.submit();
}
</script>
<form id="form1" name="form1" method="post" action="" onSubmit="jump()">
<input type="text" name="username" id="username" />
<input type="submit" name="Submit" value="登录" />
</form>
<script>
function jump()
{
form1.action=document.getElementById("username").value+".asp";
form1.submit();
}
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询