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
Different approach, get the typeof
if(typeof window.onbeforeunload == 'function') { alert("hello functionality!"); }