Home  >  Article  >  Web Front-end  >  JavaScript关闭当前页面(窗口)不带任何提示_javascript技巧

JavaScript关闭当前页面(窗口)不带任何提示_javascript技巧

WBOY
WBOYOriginal
2016-05-16 16:54:27970browse

1. 不带任何提示关闭窗口的js代码

复制代码 代码如下:

2.关闭当前页面(IE下带提示)
复制代码 代码如下:

3.自定义提示关闭
复制代码 代码如下:


/>

4.当用户点浏览器的“最大化”、“最小化”、“关闭”按钮中的“关闭”按钮时,也弹出关闭的确认对话框
复制代码 代码如下:


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