如题
---------------------------------------------------------------
window.top.opener = null;
window.top.close();
---------------------------------------------------------------
1<input onclick="window.opener=null;window.close()" type="button" value="关闭"/>