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>

原文地址:https://www.cnblogs.com/curedfisher/p/11697246.html