设置如下:
window.top.opener  =  null;  
window.top.close();  
---------------------------------------------------------------  
 
<input  type=button  value=关闭  onclick="window.opener=null;window.close()">