zoukankan      html  css  js  c++  java
  • JS获取窗口关闭事件仅IE生效

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">

    window.onbeforeunload = onbeforeunload_handler;
    window.onunload = onunload_handler;
    function onbeforeunload_handler()
    {
    var warning="确认退出?";
    alert(warning);
    return warning;
    }

    function onunload_handler()
    {
    var warning="谢谢光临";
    alert(warning);
    }
    //仅支持IE

    </script>

    </head>
    <body>
    </body>
    </html>

  • 相关阅读:
    [恢]hdu 2005
    [恢]hdu 2004
    [恢]hdu 1093
    [恢]hdu 1092
    [恢]hdu 2008
    [恢]hdu 1091
    [恢]hdu 2006
    [恢]hdu 1089
    [恢]hdu 1094
    OGRE小记
  • 原文地址:https://www.cnblogs.com/insane/p/14292751.html
Copyright © 2011-2022 走看看