<form action="http://localhost:8080/GD/LoginAction_execute.action">
用户名:<input type="text" name="user.username"><br>
密码:<input type="text" name="user.password"><br>
<input type="submit" value="登录">
<input type="button" value="返回注册" onclick="jumptoregist()">
</form>
点击按钮跳到注册页面
<script>
function jumptoregist() {
document.location.href="regist.html";
}
</script>
如何提交的表单不跳转
<form action="XXX" method="post" name="uploadfile" target="id_iframe">
</form>
<iframe id="id_iframe" name="id_iframe" style="display:none;"></iframe>