开发者

window.onbeforeunload not working in chrome [duplicate]

开发者 https://www.devze.com 2023-02-06 11:59 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: window.onb开发者_C百科eforeunload not working in chrome
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

window.onb开发者_C百科eforeunload not working in chrome

window.onbeforeunload=function(); is not working in chrome.. It works for IE and Mozila but it not works for chrome.. Is there any another way to use window.onbeforeunload=function(); in chrome......... Thanks in advance.......


I have tested the following in Chrome and it works...

    window.onbeforeunload = function () {
        alert("Hello");
    };
0

精彩评论

暂无评论...
验证码 换一张
取 消