<span

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

var name='提示';   //网页名称,可为空;

var iWidth=550;      //弹出窗口的宽度;

var iHeight=250;     //弹出窗口的高度;

var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置

var iLeft = (window.screen.availWidth - iWidth) / 2;  //获得窗口的水平位置

showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);

 

showInfo.focus();

posted on 2016-09-14 10:57  <span  阅读(266)  评论(0编辑  收藏  举报