Cytat(fou @ 30.10.2011, 21:58:17 )

Unload - zdarzenie, które się wykonuje przed opuszczeniem danej strony. Opuszczenie może się odbyć za pomocą zamknięcia zakładki/okna, przejścia na inną podstronę lub też odświeżenie strony.
Cytat
Worthy to note, however, is that Opera doesn’t fire the unload event when the browser refreshes the page, or uses the back/forward buttons to browse off of the page (I had no success with the fix posted in the comments on that page). What’s worse, Opera never fires the onbeforeunload event. This creates a serious problem with attempting to save page state prior to a user leaving your page.
Czytaj: Zapomnij o poleganiu na zdarzeniu onunload, nawet w najmniejszym stopniu..