我遇到的情况是,当用户尝试刷新页面时,应用程序会显示一条消息以确认用户是否进一步。请帮帮我。谢谢你提前
答案 0 :(得分:0)
在您的javascript代码中尝试此操作
window.onbeforeunload = function(e) {
var e = e || window.event;
//IE
if (e) {
e.returnValue = "prompt message";
}
else {
//other browser
return "prompt message";
}
};