Fix onbeforeunload event handler processing

Add a description of Fix onbeforeunload event handler processing