Onbeforeunload test.