這是我所知的…一般來說我都會這樣做,不過我知道這個一定不是最好的方法
window.open(name, "", "width="+window.document.body.clientWidth+",height="+window.document.body.clientHeight);

解决方案 »

  1.   

    在要打开的网面加入以下代码。<script language=javascript>
    function maxWin()
    {
      try
      {
        var b = top.screenLeft == 0;
        var b = b && top.screen.availHeight - top.screenTop - top.body.offsetHeight - 20 == 0;
        if(!b)
        {
          var str  = '<object id=Max classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
              str += '<param name="Command" value="Maximize"></object>';
          document.body.insertAdjacentHTML("beforeEnd", str);
          document.getElementById("Max").Click();
        }
      }catch(e){}
    }
    </script><body onload="maxWin()" onresize="maxWin()">
      

  2.   

    对了,open不能对其进行大小限制<a href="#" onclick="window.open('test.htm',null,'')">open</a>
      

  3.   

    window.open('url','popWin','width='+screen.width+',height='+screen.height
    +',top=0,left=0')
      

  4.   

    window.open('URL','windowname','width='+screen.width+',height='+screen.height
    +',top=0,left=0')