自定义表单比较,弹出的新窗口被拦截,如何解决这个问题?代码如下
function gotoLife_do(url,p){
$("#disabledImageZonelife").hide();
post(url,p);
}
function post(URL, PARAMS) {
var temp = document.createElement("form");
temp.action = URL;
temp.method = "post";
temp.setAttribute("target" , '_black' );
temp.style.display = "none";
for (var x in PARAMS) {
var opt = document.createElement("textarea");
opt.name = x;
opt.value = PARAMS[x];
temp.appendChild(opt);
}
document.body.appendChild(temp);
temp.submit();
return temp;
}