<a href="Javascript:window.open('about:bank');self.close()">open</a>

解决方案 »

  1.   

    下面这样行吗??
    1.htm
    <html><head>
    </head>
    <body>
    <input type=button onclick='window.open("2.htm")' value="open">
    </body>
    </html>2.htm:
    <html><head>
    </head>
    <body>
    <input type=button onclick='window.opener.close()' value="close">
    </body>
    </html>
      

  2.   

    把2.htm改为吧!
    <html><head>
    </head>
    <body onload='window.opener.close()'>
    </body>
    </html>
      

  3.   

    <a href="Javascript:window.open('about:bank');self.opener=null;self.close()">open</a>