Come posso intercettare la chiusura del browser da parte del utente...
solo la chiusura...xDxD
Printable View
Come posso intercettare la chiusura del browser da parte del utente...
solo la chiusura...xDxD
onunload
Ciao!
EDIT:
ecco un esempio che ho fatto al volo:
Codice HTML:<html>
<head>
<title>non lasciarmi</title>
</head>
<body onUnload='alert("Perché te ne vai?");'>
ciao
</body>
</html>
si ma anche se aggiorni la pagina lo fa....