你可以在onload当中window.open(你的URL),close掉当前的

解决方案 »

  1.   

    close 当前窗口会引起安全性问题,浏览器会弹出一个对话框让你确认是否关闭当前窗口
      

  2.   

    可以使用,关闭当前窗口,重新打开一个窗口。
    对于关闭窗口会弹出对话框,可以这样处理:
    opener=null;
    window.close();
      

  3.   

    opener=null;
    window.close();
    这样不行,还是会出现提示窗口的
      

  4.   

    只能在做一个中间页,在用window.open()达到所要的效果
      

  5.   

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=big5">
    </head>
    <script>
    <!--
    window.open("home.htm","fs","fullscreen=yes")
    //-->
    </script> <body bgcolor="#FFFFFF" text="#000000"></body>
    </html>
      

  6.   

    to ; liad这样还是不行,你只是打开了一个全屏的新窗口遮住了原来的窗口,其实还是打开了两个窗口
      

  7.   

    有这样的javascript特效吗?实现功能:超连接按纽特效???
      

  8.   

    function login() {
    window.open("<%=request.getContextPath()%>/login.jsp","budget","menubar=0,toolbar=0,scrollbars=0,titlebar=0,location=0,status=0,resizable=1");
    opener=null;
    window.close();
    }这个是我用的实现重新开窗口的,一直用都可以的,没有弹出提示窗口,
    不知道 gdj980150(孤独剑) ( )的是什么样的状况。
      

  9.   

         <script language="javascript">
         var height = screen.height - 50;
         width = screen.width - 10;
         window.open('index.jsp','','height=' + height +', width=' + width + ', top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no');
        </script>
      

  10.   

    谢谢大家 ,特别是 swinging(山不在高) 
    他说的方法是可行的
    大家还可以试试用hta文件,只是每次打开都会有警告窗口出现