日期:2014-05-17  浏览次数:20733 次

IE8怎么设置允许弹出窗口?
我已经设置 关闭弹出窗口阻止程序,还是不能弹出窗口

也设置地址信任了 http://127.0.0.1:8080

我看代码是
 var targeturl="index.jsp";
 var nwin=window.open("","","scrollbars,status=yes");
 try{
  nwin.focus();
 }catch(e){
  alert ("打开了窗口拦截的功能,请先关闭。");
  self.history.back();
 }


是不是IE8 不能用newwin.focus();?

------解决方案--------------------
探讨
var targeturl="index.jsp";
var nwin=window.open("","","scrollbars,status=yes");
try{
nwin.focus();
}catch(e){
alert (……

------解决方案--------------------
参考:http://blog.csdn.net/zhuchaoyong/archive/2010/07/08/5721995.aspx