<a href="#" onclick="javascript:top.close()">退出</a>

解决方案 »

  1.   

    用链接的时候注意不要将target设为"_self"以外的值.
    <input type="button" value="退出" onclick="top.close();">
      

  2.   

    <a href="#" onclick="javascript:top.close();">退出</a>
    or 
    <a href="#" onclick="javascript:parent.close();">退出</a>
      

  3.   

    好像不行啊!
    我的frame文件如下:<html>
    <head>
    <title>MaryKay Director Web Report</title>
    </head>
    <frameset rows="60,*,32" frameborder="NO" border="0" framespacing="0">
    <frame name="QueryTop" noresize src="../query/top.asp" frameborder="NO" marginheight="0" marginwidth="0" scrolling="NO" >
    <frame name="QueryMain" noresize src="../query/WelcomeQuery.asp" marginheight="0" marginwidth="0" scrolling="auto" frameborder="NO">
    <frame name="MaryKayBottomFrame" src="../bottom.asp" marginheight="0" marginwidth="0" noresize scrolling="NO" frameborder="NO">
    </frameset><noframes></noframes>
    </html>我需要在top.asp加上退出的链接