6 个解决方案
#1
<form name='form1' method='post' action='要提交的页面'>
#2
<form target="_blank">
#3
或者用js也可以实现
#4
<form name='form1' method='post' action='执行文件名' target='_blank'>
#5
简单的就加上 target="_blank"
隐藏Form提交的话,就用这个!
function Jump()
{
document.logform.getmm.value="0";
document.logform.username.value="test";
document.logform.userpw.value="123456";
document.logform.action="http://localhost/test/Login.aspx";
window.open("about:blank","win","location=no");
document.logform.target="win";
document.logform.submit();
return false;
}
<FORM name="logform" action="" method="post" id="logform" target="" style="DISPLAY:none">
<INPUT type="hidden" id="getmm" name="getmm">
<INPUT type="hidden" id="IsRelogin" name="IsRelogin" value="0">
<INPUT type="hidden" id="username" name="username">
<INPUT type="hidden" id="userpw" name="userpw">
</FORM>
隐藏Form提交的话,就用这个!
function Jump()
{
document.logform.getmm.value="0";
document.logform.username.value="test";
document.logform.userpw.value="123456";
document.logform.action="http://localhost/test/Login.aspx";
window.open("about:blank","win","location=no");
document.logform.target="win";
document.logform.submit();
return false;
}
<FORM name="logform" action="" method="post" id="logform" target="" style="DISPLAY:none">
<INPUT type="hidden" id="getmm" name="getmm">
<INPUT type="hidden" id="IsRelogin" name="IsRelogin" value="0">
<INPUT type="hidden" id="username" name="username">
<INPUT type="hidden" id="userpw" name="userpw">
</FORM>
#6
谢谢大家。结贴。
#1
<form name='form1' method='post' action='要提交的页面'>
#2
<form target="_blank">
#3
或者用js也可以实现
#4
<form name='form1' method='post' action='执行文件名' target='_blank'>
#5
简单的就加上 target="_blank"
隐藏Form提交的话,就用这个!
function Jump()
{
document.logform.getmm.value="0";
document.logform.username.value="test";
document.logform.userpw.value="123456";
document.logform.action="http://localhost/test/Login.aspx";
window.open("about:blank","win","location=no");
document.logform.target="win";
document.logform.submit();
return false;
}
<FORM name="logform" action="" method="post" id="logform" target="" style="DISPLAY:none">
<INPUT type="hidden" id="getmm" name="getmm">
<INPUT type="hidden" id="IsRelogin" name="IsRelogin" value="0">
<INPUT type="hidden" id="username" name="username">
<INPUT type="hidden" id="userpw" name="userpw">
</FORM>
隐藏Form提交的话,就用这个!
function Jump()
{
document.logform.getmm.value="0";
document.logform.username.value="test";
document.logform.userpw.value="123456";
document.logform.action="http://localhost/test/Login.aspx";
window.open("about:blank","win","location=no");
document.logform.target="win";
document.logform.submit();
return false;
}
<FORM name="logform" action="" method="post" id="logform" target="" style="DISPLAY:none">
<INPUT type="hidden" id="getmm" name="getmm">
<INPUT type="hidden" id="IsRelogin" name="IsRelogin" value="0">
<INPUT type="hidden" id="username" name="username">
<INPUT type="hidden" id="userpw" name="userpw">
</FORM>
#6
谢谢大家。结贴。