onbeforeunload e' un evento gestito esclusivamente da Internet Explorer.

ciao