html离开页面弹出提示
发布网友
发布时间:2022-12-25 08:22
我来回答
共1个回答
热心网友
时间:2023-11-02 22:15
window.onbeforeunload = onbeforeunload_handler;
function onbeforeunload_handler(){
var warning="提示信息";
return warning;
}window.onbeforeunload = onbeforeunload_handler;
function onbeforeunload_handler(){
var warning="You will quit daks system, are you sure?";
return warning;
}