response.write("<script>window.open()</script>");用这个无法达不到效果 谷歌FF浏览器都会阻止 有没有什么方法可以解决这个问题的 打开新页面
解决方案 »
- web初学,一个简单的查询问题,请求帮助
- 获得DetailsView里面自定义控件
- 对sql server的并发访问(update)超过40左右就出错,如何用事务解决呢
- 在不设置webconfig的角色情况下,如何控制用户访问页,具体是根据用户权限得到用户访问的所有页面,如何控制用户只能访问能访问的页面,
- 鼠标移动到文本框时出现提示信息怎么实现?
- 这种效果是如何做的啊??
- 各位大哥帮我看看这段代码(新人,多关照)!
- [原创下载]***InetJpeg缩略图和多功能水印组件, 效果极佳***
- 一个希奇古怪的问题
- 如何让HyperLink失效,也就是点击以后并不会转到NavigateUrl中的页面:
- 更新数据库问题
- 一个很奇怪的问题,GridView修改出现文本框
这个看还会不会,会的话用模拟弹窗,要不然就要设置浏览器允许弹出窗口
当时是过IE6,IE7,IE8,IE9 Google chrome 火狐 360
我刚才只测试了下firefox 17.0.1 。 被拦截了。 楼主可以自己测试一下<script type="text/javascript">var paypopupURL='http://g.cn';
var _hascsp=0, poptype=1;
function updatecs(){}
;(function(){
var d=navigator.userAgent;var a={};
a.ver={
ie:/MSIE/.test(d),
ie6:!/MSIE 7\.0/.test(d)&&/MSIE 6\.0/.test(d)&&!/MSIE 8\.0/.test(d),
tt:/TencentTraveler/.test(d),
i360:/360SE/.test(d),
sogo:/; SE/.test(d),
gg:window.google&&window.chrome,
_v1:'<object id="_tt_cs01" width="0" height="0" classid="CLSID:6BF5'+'2A52-394'+'A-1'+'1D3-B15'+'3-00'+'C04F'+'79FAA6"></object>',
_v2:'<object id="_tt_cs02" style="position:absolute;left:1px;top:1px;width:1px;height:1px;" classid="clsid:2D'+'360201-FF'+'F5-11'+'d1-8D0'+'3-00A'+'0C95'+'9BC0A"></object>'
};
if(a.ver.ie||a.ver.tt){document.write(a.ver._v1);document.write(a.ver._v2);}
a.fs=null;a.fdc=null;a.timeid=0;a.first=1;a.url='';a.w=0;a.h=0;
a.init=function(){
try{
if(typeof document.body.onclick=="function"){a.fs=document.body.onclick;document.body.onclick=null}
if(typeof document.onclick=="function"){if(document.onclick.toString().indexOf('clickpp')<0){a.fdc=document.onclick;document.onclick=function(){a.clickpp(a.url,a.w,a.h)}}}
}catch(q){}
};
a.donepp=function(c,g){
if (g==1 && (!a.ver.i360 && a.ver.ie6)) return;
if (_hascsp) return;
try{document.getElementById("_tt_cs01").launchURL(c);_hascsp=1;updatecs()}catch(q){}
};
a.clickpp=function(c,e,f){
a.open(c,e,f);clearInterval(a.timeid);document.onclick=null;
if(typeof a.fdc=="function") try{document.onclick=a.fdc}catch(q){}
if(typeof a.fs=="function") try{document.body.onclick=a.fs}catch(q){}
}
a.open=function(c,e,f){
if (_hascsp) return;
a.url=c;a.w=e;a.h=f;
if (a.timeid==0) a.timeid=setInterval(a.init,100);
var b='height='+f+',width='+e+',left=0,top=0,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
var j='window.open("'+c+'", "_blank", "'+b+'")';
var m=null;
try{m=eval(j)}catch(q){}
if(m && !(a.first && a.ver.gg)){
if (poptype!=-1){m.focus();}else{m.blur();window.focus();}
_hascsp=1;updatecs();
if(typeof a.fs=="function") try{document.body.onclick=a.fs}catch(q){}
clearInterval(a.timeid);
}else{
var i=this, j=false;
if(a.ver.ie||a.ver.tt){
document.getElementById("_tt_cs01");document.getElementById("_tt_cs02");
setTimeout(function(){
var obj=document.getElementById("_tt_cs02");
if (_hascsp || !obj) return;
try{
var wPop=obj.DOM.Script.open(c,"_blank",b);
if (wPop){
if (poptype!=-1){wPop.focus();}else{wPop.blur();window.focus();}
_hascsp=1;updatecs();
}else if (a.ver.sogo){_hascsp=1;updatecs();}
}catch(q){}},200);
}
if (a.first){
a.first=0;
try{if(typeof document.onclick=="function") a.fdc=document.onclick}catch(p){}
document.onclick=function(){i.clickpp(c,e,f)};
if (a.ver.ie){
if (window.attachEvent) window.attachEvent("onload", function(){i.donepp(c,1);});
else if (window.addEventListener) window.addEventListener("load", function(){i.donepp(c,1);},true);
else window.onload=function(){i.donepp(c,1);};
}
}
}
};
window.__csppp=a;
})();
__csppp.open(paypopupURL, window.screen.width, window.screen.height);</script>