window.resizeTo(iWidth, iHeight)
前面是宽,后面是高
另外你可能会想调整位置
window.moveTo(iX, iY)

解决方案 »

  1.   

    resizeTo Method--------------------------------------------------------------------------------Sets the size of the window to the specified width and height values. Syntaxwindow.resizeTo(iWidth, iHeight)
    ParametersiWidth Required. Integer that specifies the width of the window in pixels. 
    iHeight Required. Integer that specifies the height of the window in pixels. Return ValueNo return value.ResThis method does not work on dialog windows. In order to move or size a dialog window, manipulate the dialogHeight, dialogWidth, dialogTop, and dialogLeft properties.
      

  2.   

    <script LANGUAGE="JavaScript" FOR="window" EVENT="onload()"> 
    window.moveTo(100, 100) 
    window.resizeTo(300, 300) 
    </script>