窗口的大小和定位

  1.在打开窗口时,就设置窗口大小:

    var openWindow=window.open("url","name","config");

      open方法返回打开的窗口对象

    var config ="top=?,left=?,height=?,resizable=yes,location=no";

  2.大小:window.innerHegght/Width:文档先显示区的宽高

                 文档显示区:仅用于显示网页区域范围大小

                           window.Height/Width:整个窗口的宽和高

  3.屏幕大小:screen.Height/Width:操作系统桌面分辨率

        screen.avaiHeight/Width:桌面分辨率去掉任务栏的高度

                            window7x下,几乎无差别

  4.调整大小:window.resizeTo(Height,Width)

        window.resizeBy(宽的增量,高的增量);

  5.移动窗口位置:window.moveTo(left,top);

                   x,y

原文地址:https://www.cnblogs.com/qulb/p/5928447.html