<script>
function CloseWin(){
window.opener=null;
window.open('','_self');
window.close();
}
</script>
<input type=button value="关闭" onclick="CloseWin()">
function CloseWin(){
window.opener=null;
window.open('','_self');
window.close();
}
</script>
<input type=button value="关闭" onclick="CloseWin()">