<html>
<body onload="hh2.Click()">
<object  id=hh1  classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">    
<param  name="Command"  value="Minimize"></object>  
<object  id=hh2  classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">    
<param  name="Command"  value="Maximize"></object>  
<OBJECT  id=hh3  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">  
<PARAM  NAME="Command"  VALUE="Close"></OBJECT>  
 
<input  type=button  value=×&icirc;&ETH;&iexcl;&raquo;&macr;  onclick=hh1.Click()>  
<input  type=button  value=×&icirc;&acute;ó&raquo;&macr;  onclick=hh2.Click()>  
<input  type=button  value=&sup1;&Oslash;±&Otilde;  onclick=hh3.Click()>  
</body>
</html>

解决方案 »

  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.   

    <html><head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    <script language="javascript">
    function confirm_size()
    {
      var win_height=prompt("请输入要打开窗口的高度");
      var win_width=prompt("请输入要打开窗口的宽度");
      var win="height="+win_height+",width="+win_width;
      window.open("1.htm",win);     }</script></head>
    <body>
    <input type="button" onClick="confirm_size()"></body></html>