要求还挺多,能走的路都堵的差不多了。<BODY>
<form action="http://domain/resultpage.jsp" onsubmit="dosubmit();return false">
<input name=aa value=11>
<input name=bb value=22 type=checkbox>
<input name=cc value=33 type=radio>
<input name=cc value=44 type=radio>
<input type=submit>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function dosubmit(){
var ar = [];
var elms = document.forms[0].elements;
for (var i=0;i<elms.length;i++){
elm = elms[i];
if (!elm.disabled ){
if (elm.type == "text" || elm.checked)
ar[ar.length] = elm.name+"="+elm.value;
}
}
opener.frames["B"].location = document.forms[0].action+"?"+ar.join("&");
opener=null;
close();
}
//-->
</SCRIPT>
</BODY>最好将参数值编码后再发送(http://www.csdn.net/develop/Read_Article.asp?Id=15043)
<form action="http://domain/resultpage.jsp" onsubmit="dosubmit();return false">
<input name=aa value=11>
<input name=bb value=22 type=checkbox>
<input name=cc value=33 type=radio>
<input name=cc value=44 type=radio>
<input type=submit>
</form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function dosubmit(){
var ar = [];
var elms = document.forms[0].elements;
for (var i=0;i<elms.length;i++){
elm = elms[i];
if (!elm.disabled ){
if (elm.type == "text" || elm.checked)
ar[ar.length] = elm.name+"="+elm.value;
}
}
opener.frames["B"].location = document.forms[0].action+"?"+ar.join("&");
opener=null;
close();
}
//-->
</SCRIPT>
</BODY>最好将参数值编码后再发送(http://www.csdn.net/develop/Read_Article.asp?Id=15043)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货