Home  >  Article  >  Web Front-end  >  How to close IE JS window silently without prompting_javascript skills

How to close IE JS window silently without prompting_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:28:22844browse

IE6:

Copy code The code is as follows:

<script> <br>window.opener =null; <br>window.close(); <br></script>

IE7:
Copy code The code is as follows:

<script> <br>window.open('','_self'); <br>window.close(); <br> </script>

General code for IE6, IE7, FF:
Copy code The code is as follows :

<script> <br>window.opener=null; <br>window.open('','_self'); <br>window.close(); <br> </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn