<body unonload="window.open('newwindow.htm')">

解决方案 »

  1.   

    onClick="javascript:window.close;void(window.open('other.php','xx','width=520,height=450'));"
      

  2.   

    function closeWindow(){
    window.opener=null;
    window.close();
    }
      

  3.   

    我用以下不行:
    <script language="javascript">function otherWindow()
    {
    window.opener=null;
    window.close();
    window.open('index.php');
    } </script><body onLoad="otherWindow();"  >
    谁帮我看一下?
      

  4.   

    window.open("")..........
    window.opener=null;
    window.close();
      

  5.   

    我用以下不行:
    <script language="javascript">function otherWindow()
    {
    window.opener=null;
    window.close();
    window.open('index.php');
    } </script><body onLoad="otherWindow();"  >
    谁帮我看一下?
    ######################################
    当然不行了。改成:<script language="javascript">
    function otherWindow()
    {
    window.opener=null;
    window.open('index.php');
    window.close('');
    } </script><body onLoad="otherWindow();"  >
      

  6.   

    主要是关闭窗口用 self.close();和  window.close();都没用
    该用什么来关闭窗口?
      

  7.   

    function otherWindow(){
    window.open("url");
    window.opener=null;
    window.close();
    }
      

  8.   

    <script language="javascript">
    function otherWindow()
    {
    window.opener=null;
    window.open('index.php');
    window.close('');
    } </script><body onLoad="otherWindow();"  >
    ###############################
    这个没问题呀。我已经试过了。