jQuery 卸载自定义对话框之前
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12001129/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
beforeunload custom dialog
提问by Noah Passalacqua
Hey guys im using a CMS for my site and am checking if the content has been modified before the location of the window is changed. now i already know about the
嘿伙计们,我正在为我的网站使用 CMS,并且正在检查在更改窗口位置之前内容是否已被修改。现在我已经知道了
$(window).bind('beforeunload', function() {
return "dialog message";
});
method but i found a plugin called Appriseand want to replace the default dialog with one of these. Is this possible?
方法,但我找到了一个名为Apprise的插件,并想用其中一个替换默认对话框。这可能吗?
回答by Sameer
Firefox does not allow to alter message box
Firefox 不允许更改消息框