- javascript打开新窗口
window.open('page.html','newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')
- 获取当前窗口的尺寸
var winHeight = document.documentElement.clientHeight; var winWidth = document.documentElement.clientWidth;