Some browser(opera) does not seem to catch 'onbeforeunload' event.

It is better to use 'onload' event than 'onbeforeunload' event.