Home  >  Article  >  Web Front-end  >  JavaScript reminder effect script when the web page is closed_javascript skills

JavaScript reminder effect script when the web page is closed_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:59:371107browse

Copy code The code is as follows:



<script> <br><br>window.onbeforeunload =stoprefresh; //Events before registration is closed<br>window.onunload = UnloadConfirm; //Events after registration is closed<br><br></script>

Script Home

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