超简单的,就是有时想不起来。
<input name="btnClose" onclick="javascript:window.opener=null;window.open('','_self');window.close();" Text="关闭"></input>