window.resizeTo(width,height)
width:窗口的宽度。
height:窗口的高度。
示例:window.resizeTo(200,200)
如何把窗口调整到满屏显示?
window.moveTo(0,0);
window.resizeTo(window.screen.availWidth,window.screen.availHeight);
window.screen--一个screen对象,它的属性与显示器有关。screen.availWidth是屏幕可用宽度,screen.availHeight是屏幕可用高度。