I've been using this code for some time and it worked fine until yesterday:
window.onbeforeunload = function() {
return "?Atención! Si continúas no podrás volver atrás y podrías perder datos. Revisa todos los campos y termina el trabajo antes de moverte de esta página. ?Seguro que quieres continuar?";
}
The problem now is that Chrome shows this:
But Edge shows it the right way:
What am I doing wrong?
Note: Language is not the problem because I've tried with both English and Spanish.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…