IE 6.0、IE 7.0 无提示关闭窗口
生活随笔
收集整理的這篇文章主要介紹了
IE 6.0、IE 7.0 无提示关闭窗口
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="generator" content="editplus" /> <meta name="author" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> </head> <body> <script language="javascript" type="text/javascript"> //<![CDATA[ alert('對不起,你沒有權限訪問此頁面!'); window.opener = null; window.open('', '_self'); window.close(); //]]> </script> </body> </html>
[Ctrl+A 全選 提示:你可先修改部分代碼,再點運行代碼]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="generator" content="editplus" /> <meta name="author" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> </head> <body> <script language="javascript" type="text/javascript"> //<![CDATA[ alert('對不起,你沒有權限訪問此頁面!'); window.opener = null; window.open('', '_self'); window.close(); //]]> </script> </body> </html>
[Ctrl+A 全選 提示:你可先修改部分代碼,再點運行代碼]
轉載于:https://www.cnblogs.com/Dicky/archive/2009/02/04/Close-Window-Without-Prompt.html
總結
以上是生活随笔為你收集整理的IE 6.0、IE 7.0 无提示关闭窗口的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ffmpeg安装与配置
- 下一篇: Tensorflow-相关API-交叉熵