参考页:http://www.w3school.com.cn/htmldom/dom_obj_window.asp
文档显示区的宽度:window.innerWidth
文档显示区的高度:window.innerHeight
IE 不支持上面属性,可以用 document.documentElement.clientWidth 和 document.documentElement.clientHeight代替.
窗口的外部宽度:window.outerWidth
窗口的外部高度:window.outerHeight
IE 不支持上面属性,无可替代属性。
IE 窗口的左上角在屏幕上的的 x 坐标:screenLeft
IE 窗口的左上角在屏幕上的的 Y 坐标:screenTop
Firefox 窗口的左上角在屏幕上的的 x 坐标 :screenX
Firefox 窗口的左上角在屏幕上的的 x 坐标 :screenY