jsp中submit的连接属性是什么?

把注册的按钮改成button:
<form action="dologin.jsp" method="post">
用户<input type="text" name="name"><br>
密码<input type="password" name="pass"><br>
<input type="submit" name="ok" value="提交">
<input type="button" name="ok1" onclick="reg()" value="注册">

<script type=text/javascript>
function reg(){
window.location.href="reg.jsp";//跳转到注册页面
}
</script>

posted @ 2019-10-18 11:12  Curedfisher  阅读(321)  评论(0编辑  收藏  举报