htmlMethod to automatically close the page: first open the corresponding HTML code file; then pass "
The operating environment of this article: Windows7 system, HTML5 version, DELL G3 computer
How does html automatically close the page?
The code is implemented as follows: Parameter 10 in
<body onload='setTimeout("mm()",10)'> <script>function mm(){ window.opener=null; window.close();} </script> </body>
can be modified at will. The larger it is, the longer it will take. 0 means it will be closed when it is opened directly.
Recommended study: "HTML Video Tutorial"
The above is the detailed content of How to automatically close the page in html. For more information, please follow other related articles on the PHP Chinese website!