I\'d like to check if the current browser supports the onbeforeunload event. The common javascript way to do this does not seem to work:
if (window.onbeforeu
onbeforeunload is also supported by FF, so testing for browser won't help.