window.open()弹窗时设置窗口占满屏幕

             
           top.window.moveTo(0,0);  
            var docElm = document.documentElement;
            //W3C  
            if (docElm.requestFullscreen) {  
                top.window.resizeTo(screen.availWidth,screen.availHeight);  
            }
            //FireFox  
            else if (docElm.mozRequestFullScreen) {  
                top.window.resizeTo(screen.availWidth,screen.availHeight);  
            }
            //Chrome等  
            else if (docElm.webkitRequestFullScreen) {  
                 top.window.resizeTo(screen.availWidth,screen.availHeight); 
            }
            //IE
            else if (document.all)   
            {  
                top.window.resizeTo(screen.availWidth,screen.availHeight);  
            }

你可能感兴趣的:(window.open()弹窗时设置窗口占满屏幕)