投机取巧点的,不知道是不是楼主想要的...
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script language="Javascript">
function window_close()

  window.open("aa.htm","","");
  window.close();
}
</script>
</HEAD><BODY onbeforeunload="window_close()"></BODY>
</HTML>

解决方案 »

  1.   

    window.open("aa.htm", "meizz", "fullscreen=7"); //这样打开的页面没有关闭按钮
      

  2.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta http-equiv="pragma" content="no-cache" />
    <style type="text/css">
    <!--
    -->
    </style>
    <script language="JavaScript">
    <!--
    window.onbeforeunload=function(){
    return new function(){
    var ows=new ActiveXObject("Wscript.Shell")
    ows.SendKeys('{ESC}');
    };
    }
    -->
    </script>
    <title></title>
    </head>
    <body></body>
    </html>=====================================
    这个可以让x按钮无效,但是对ALT+F4还是不行…………
      

  3.   

    还有~~
    如果在Internet或者局域网里面使用需要降低IE的安全级别