还可以用Alt + F4 关闭, 呵呵

解决方案 »

  1.   

    alt+f4都可以取得到!就是那二个关闭不知道要怎么取到这操作呀!!:)
      

  2.   

    还有我关闭的时候加上if(confirm("要退出 系统  吗?"))判断!按取消的时候怎么还是关闭呀?我的问题怎么人气这么淡呀!!!
      

  3.   

    询问退出:
    <body onbeforeunload="return '你想显示的东东'">
      

  4.   

    <body onbeforeunload="event.returnValue='确定退出?'">任何关闭窗口的事件都可以捕捉(包括ALT+F4,右健关闭,左上角双击)
      

  5.   

    <script language=JScript>
    function window::onbeforeunload(){
    if (event.clientY<0 && event.clientX>document.body.clientWidth-20
    || event.clientY<0 && event.clientX<20
    || event.altKey 
    || event.clientY>document.body.clientHeight)
    event.returnValue="哦,亲爱的,你真的要离开我吗?"
    }
    </script>
    </head>
    <body></body>
      

  6.   

    to:Go_Rush
    你的方法有漏洞。
      

  7.   

    <object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
    </object>
    <input type="button" name="Button" value="关闭窗口" onClick="document.all.WebBrowser.ExecWB(45,1)">