开发者

window.onbeforeunload not working in chrome [duplicate]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜