Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

browser/tab close event (onbeforeunload) is not working

  • 1 risposta
  • 3 hanno questo problema
  • 2 visualizzazioni
  • Ultima risposta di cor-el

more options

window.onbeforeunload = function (e) { // Your logic to prepare for 'Stay on this Page' goes here

   return "Please click 'Stay on this Page' and we will give you candy";

};

i have used above query.

window.onbeforeunload = function (e) { // Your logic to prepare for 'Stay on this Page' goes here return "Please click 'Stay on this Page' and we will give you candy"; }; i have used above query.

Tutte le risposte (1)

more options