in the opened page, try
<script language=javascript>
function window.onload()
{
  var w =  document.body.scrollWidth;
  var h = document.body.scrollHeight;  if (w > 400)
   w = 400;
  
  if (h > 400)
   h = 400;  window.resizeTo(w,h);
}
</script>otherwise, you need to do it in the parent page:
<script>
 var win = window.open("TestOpen2.html");
 setTimeout("resizeChild()", 1000);function resizeChild()
{
 if (win != null && !win.closed)
 {
  if (win.document.readyState == "complete")
  {
   var w =  win.document.body.scrollWidth;
   var h = win.document.body.scrollHeight;  if (w > 400)
   w = 400;
  
  if (h > 400)
   h = 400;   win.resizeTo(w,h);
  }
  else
  {
     setTimeout("resizeChild()", 1000);
  }
 }
}
</script>

解决方案 »

  1.   

    window.open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=no,width=400,height=350,left=' + (window.screen.width-400)/2 + ',top=' + (window.screen.height-350)/2 + ',screenX=100,screenY=50');
      

  2.   

    Response.Write("<script>window.open('page.aspx','new','fullscreen=0,toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=800,height=600,top=0,left=0');</script>")
      

  3.   

    http://www.csdn.net/develop/Read_Article.asp?Id=15113
    http://expert.csdn.net/Expert/topic/2001/2001793.xml?temp=.1702082
    http://expert.csdn.net/Expert/topic/1911/1911975.xml?temp=.4667322
      

  4.   

    top = (screen.height-imageNew.height)/2;
    left=(screen.width-imageNew.width)/2;window.open("ZoomOutPic.htm",strWinName,"width=" + imageNew.width + "px,height=" + imageNew.height + "px,top=" + top +"px,left=" + left + "px");