<HTML><HEAD></HEAD>
<BODY><input type="button" onclick="aaa()" value=改变大小><script>
function aaa() {
window.resizeTo(300,200);
}
</script>
 </BODY></HTML>

解决方案 »

  1.   

    <HTML><HEAD></HEAD>
    <BODY><input type="button" onclick="resizeTo(300,200)" value=改变大小>
     </BODY></HTML>
      

  2.   

    resizeTo Method  Internet Development Index --------------------------------------------------------------------------------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.Standards InformationThere is no public standard that applies to this method.