简体   繁体   English

在卸载弹出窗口之前取消

[英]Cancel onbeforeunload popup

Did the behavior change in Chrome 51, where now not only that you cannot specify a custom message for the unload popup, but you cannot cancel the event at all? Chrome 51的行为是否发生了变化,现在不仅不能为卸载弹出窗口指定自定义消息,而且根本无法取消该事件?

It used to be possible to assign an empty function or null to the window.onbeforeunload, but that doesn't seem to work anymore in Chrome 51. 以前可以为window.onbeforeunload分配一个空函数或null,但这在Chrome 51中似乎不再起作用。

Thank you for any input! 谢谢您的投入!

自定义消息已删除,但事件本身存在: https : //www.chromestatus.com/feature/5349061406228480

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM