由于window.open的某些限制,想问问大家有没有其他的一些弹出新标签页窗口的方法,location貌似不好使。下面这个是在本页打开的。
function forword(){
var buck = <%=request.getAttribute("link")%>;
var strURL = '';
if (buck == "1"){
strURL = "url1";
parent.location.href=strURL;
}
if (buck == "2"){
strURL = "url2";
parent.location.href=strURL;
}
if (buck == null){
return;
}
}
function forword(){
var buck = <%=request.getAttribute("link")%>;
var strURL = '';
if (buck == "1"){
strURL = "url1";
parent.location.href=strURL;
}
if (buck == "2"){
strURL = "url2";
parent.location.href=strURL;
}
if (buck == null){
return;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货