在当前页面中弹出新的标签页

      url='http://www.baidu.com'
      var iWidth=720;                          //弹出窗口的宽度; 
      var iHeight=600;                         //弹出窗口的高度; 
      //获得窗口的垂直位置 
      var iTop = (window.screen.availHeight - 30 - iHeight) / 2; 
      //获得窗口的水平位置 
      var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; 
      OpenWindow=window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no'); 
posted on 2021-08-26 09:41  Huskie!  阅读(73)  评论(0编辑  收藏  举报