IE6、IE7、FF通用代码:

<script>
window.opener=null;
window.open('','_self');
window.close();
</script>