<legend id='qd4oM'><style id='qd4oM'><dir id='qd4oM'><q id='qd4oM'></q></dir></style></legend>
    1. <i id='qd4oM'><tr id='qd4oM'><dt id='qd4oM'><q id='qd4oM'><span id='qd4oM'><b id='qd4oM'><form id='qd4oM'><ins id='qd4oM'></ins><ul id='qd4oM'></ul><sub id='qd4oM'></sub></form><legend id='qd4oM'></legend><bdo id='qd4oM'><pre id='qd4oM'><center id='qd4oM'></center></pre></bdo></b><th id='qd4oM'></th></span></q></dt></tr></i><div id='qd4oM'><tfoot id='qd4oM'></tfoot><dl id='qd4oM'><fieldset id='qd4oM'></fieldset></dl></div>
    2. <tfoot id='qd4oM'></tfoot>
          <bdo id='qd4oM'></bdo><ul id='qd4oM'></ul>

        <small id='qd4oM'></small><noframes id='qd4oM'>

      1. 浏览器关闭时如何创建弹出窗口

        时间:2023-10-01

        • <bdo id='reRr6'></bdo><ul id='reRr6'></ul>
            <tbody id='reRr6'></tbody>

          <i id='reRr6'><tr id='reRr6'><dt id='reRr6'><q id='reRr6'><span id='reRr6'><b id='reRr6'><form id='reRr6'><ins id='reRr6'></ins><ul id='reRr6'></ul><sub id='reRr6'></sub></form><legend id='reRr6'></legend><bdo id='reRr6'><pre id='reRr6'><center id='reRr6'></center></pre></bdo></b><th id='reRr6'></th></span></q></dt></tr></i><div id='reRr6'><tfoot id='reRr6'></tfoot><dl id='reRr6'><fieldset id='reRr6'></fieldset></dl></div>

            1. <legend id='reRr6'><style id='reRr6'><dir id='reRr6'><q id='reRr6'></q></dir></style></legend>

              <small id='reRr6'></small><noframes id='reRr6'>

                • <tfoot id='reRr6'></tfoot>
                  本文介绍了浏览器关闭时如何创建弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想在浏览器关闭或关闭标签页时打开弹出窗口.

                  I want to open popup window when browser closed or closed tabs.

                  推荐答案

                  window.onUnLoad= function (evt) { 
                   //your code goes here
                   window.open("yourpage/some link");
                  }
                  

                  编辑注意:现在它将在浏览器的 onUnload 事件上调用.立即尝试

                  EDIT NOTE: Now it will be called on onUnload event of browser. Try now

                  尝试 window.onclose 事件:

                  Try window.onclose event:

                  在关闭浏览器时捕获事件

                  https://developer.mozilla.org/en/DOM/window.onclose

                  如何捕获浏览器窗口关闭事件?

                  参考资料:

                  http://dotnetacademy.blogspot.com/2010/09/call-function-in-javascript-before.html

                  在下面,您可以找到所有带有 javascript 窗口示例的事件:

                  On below like you can find all events with example of window for javascript:

                  http://www.java2s.com/Tutorial/JavaScript/0380__Window/windowonUnLoad.htm

                  这篇关于浏览器关闭时如何创建弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:启动 Mailchimp 邪恶弹出 onclick 下一篇:通用的 createPopup() 替代品?

                  相关文章

                  1. <i id='DZQCN'><tr id='DZQCN'><dt id='DZQCN'><q id='DZQCN'><span id='DZQCN'><b id='DZQCN'><form id='DZQCN'><ins id='DZQCN'></ins><ul id='DZQCN'></ul><sub id='DZQCN'></sub></form><legend id='DZQCN'></legend><bdo id='DZQCN'><pre id='DZQCN'><center id='DZQCN'></center></pre></bdo></b><th id='DZQCN'></th></span></q></dt></tr></i><div id='DZQCN'><tfoot id='DZQCN'></tfoot><dl id='DZQCN'><fieldset id='DZQCN'></fieldset></dl></div>
                    <tfoot id='DZQCN'></tfoot>

                  2. <small id='DZQCN'></small><noframes id='DZQCN'>

                        <bdo id='DZQCN'></bdo><ul id='DZQCN'></ul>
                    1. <legend id='DZQCN'><style id='DZQCN'><dir id='DZQCN'><q id='DZQCN'></q></dir></style></legend>