zoukankan      html  css  js  c++  java
  • 弹出窗口放置于原窗口后面

     document.onclick = function(){
                    var pop = window.open('http://www.wallytim.com/xx.html', '', 'height=' + '768' + ',width=' + '1024' + ',left=' + ((screen.width - 1024) / 2) + ',top=' + ((screen.height - 768) / 2) + ',toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1');
                    if (typeof pop != 'undefined') {
                        pop.blur();
                        if (parseInt(navigator.appVersion) >= 4 && typeof pop.window != 'undefined') 
                            var temp = pop.window.open("about:blank").close();
                        window.focus();
                    }
                }
    让弹出框先失去焦点,后让WINDOW得到焦点即可.当浏览器可以让网站弹出窗口的时候有点小问题...
  • 相关阅读:
    JZOJ.2117. 【2016-12-30普及组模拟】台风
    团队合作
    长沙游记
    统计
    html....
    OI之路
    三鑫普及组模拟赛
    牛顿迭代法
    台风
    gcd
  • 原文地址:https://www.cnblogs.com/liushannet/p/2454030.html
Copyright © 2011-2022 走看看