the following is the judgment code on the network, but it doesn"t seem to work. "Refresh or leave" will be printed all the time
.window.onbeforeunload = function () {
alert("");
// , , method
// setTimeout(onunloadcancel, 3);
if (event.clientX <= 0 && event.clientY < 0) {
console.log("");
}
else {
console.log("");
}
return "?";
}
does JavaScript provide any solutions?