zoukankan      html  css  js  c++  java
  • window.open 弹出新窗口

    1、可重复打开多个
    2、桌面居中打开
    $('#openPage').click(function () {
        var windurl = location.href + "&Popup=true";
        var pageName = "poppanel" + eval(parseInt(10000 * Math.random()));
    
        var iWidth = 800; //弹出窗口的宽度
        var iHeight = 600;     //弹出窗口的高度;
        var iTop = (window.screen.availHeight - 30 - iHeight) / 2;     //获得窗口的垂直位置;
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;     //获得窗口的水平位置;
    
        window.open(windurl, pageName, "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left= " + iLeft + ",location=no,toolbar=no, menubar=no, scrollbars=no, status=no, resizable=yes", false);
    });
  • 相关阅读:
    消息分发
    subprocess.CalledProcessError: Command ‘(‘lsb_release’, ‘-a’)’ returned non-zero exit status 1.
    ubuntu14.04 安装python3.7
    通过shell脚本查看python版本并比较
    shell 小数比较大小
    python 私有方法
    python 类的倒入
    python 路径拼接
    python 脚本接受参数
    python 获取文件运行路径
  • 原文地址:https://www.cnblogs.com/zhangpengshou/p/3103111.html
Copyright © 2011-2022 走看看