<script language="JavaScript">
<!--
window.open('test.asp','','fullscreen')
//-->
</script>

解决方案 »

  1.   

    同上 我觉得应该 "fullscreen=yes"
      

  2.   

    function  window.onbeforeunload()
    {
    //禁止关闭窗口
    if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
    {
    alert("无法关闭");
    //new ActiveXObject("WScript.Shell").sendKeys{"{ENTER}")
    window.event.returnValue="确定要退出本页吗?";
    new ActiveXObject("WScript.Shell").sendKeys("{ESC}")
    }
    //new ActiveXObject("WScript.Shell").sendKeys("{ESC}")
    }function  document.onkeydown()
    {
    //捕获ALT+F4键
    if(event.altKey&&event.keyCode==9)
    {
    alert('禁止退出!');
    event.keyCode=0;
    event.returnValue=false;
    }
    }<input type=button  value=关闭  onclick="window.opener=null;window.close()">绝对有效!
      

  3.   

    在我点关闭按钮的时候,出现提示,是否要退出该页面,确定的话就退出,但我想在此时退出的时候执行某个特定的动作,怎么办?我的页面是定时刷新的,如果用onunload的话,在每次刷新的时候也会执行那个动作,请问有什么办法可以解决?还有,在用Alt+F4关闭窗口的时候,显示的提示信息和电击关闭按钮的信息是一样的,而没有出现“禁止退出”的警告窗口。我想不用onunload,在用户关闭窗口之前执行一个logout动作。
      

  4.   

    window.open("abc.html","newWindow","fullscreen=3,height=100, width=300, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");