function mm(){ window.opener=null;window.close();}" method to automatically close the page. Can."/> function mm(){ window.opener=null;window.close();}" method to automatically close the page. Can.">
Home >Web Front-end >HTML Tutorial >How to automatically close the page in html
htmlMethod to automatically close the page: first open the corresponding HTML code file; then pass "3f1c4e4b6b16bbbd69b2ee476dc4f83afunction mm(){ window.opener=null;window.close();}
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!