Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 16:54:27
Original
1040 people have browsed it

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

复制代码 代码如下:

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

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


/>

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!