| javascript Programming Glossary: e.returnvalueHow to show the “Are you sure you want to navigate away from this page?” when changes committed? http://stackoverflow.com/questions/1119289/how-to-show-the-are-you-sure-you-want-to-navigate-away-from-this-page-when-ch  a prompt' For IE6 8 and Firefox prior to version 4 if e  e.returnValue message  For Chrome Safari IE8 and Opera 12 return message You.. 
 onbeforeunload confirmation screen customization http://stackoverflow.com/questions/1335727/onbeforeunload-confirmation-screen-customization  goes here. e e window.event For IE and Firefox if e e.returnValue message For Safari return message Please note Most browsers.. 
 Client/JS Framework for “Unsaved Data” Protection? http://stackoverflow.com/questions/140460/client-js-framework-for-unsaved-data-protection  someFormOfInterest  For IE and Firefox if e  e.returnValue You have unsaved changes.  For Safari return You have unsaved.. document.forms form   For IE and Firefox  if e   e.returnValue message   For Safari  return message   confirmExitIfModified.. 
 Disable F5 key in Safari 4 http://stackoverflow.com/questions/1492080/disable-f5-key-in-safari-4   Internet Explorer else if e.keyCode  e.keyCode 0 e.returnValue false e.cancelBubble true  return false Assign function to onkeydown.. 
 Intercept page exit event http://stackoverflow.com/questions/1704533/intercept-page-exit-event  goes here. e e window.event For IE and Firefox if e e.returnValue message For Safari return message   share improve this answer.. 
 Disabling the context menu on long taps on Android http://stackoverflow.com/questions/3413683/disabling-the-context-menu-on-long-taps-on-android  e.stopPropagation e.stopPropagation e.cancelBubble true e.returnValue false return false function preventLongPressMenu node node.ontouchstart.. 
 Change Enter from submission to Tab? http://stackoverflow.com/questions/4494552/change-enter-from-submission-to-tab  submit but nothing I have tried emulates the tab behavior. e.returnValue false e.cancel true Page still submits with the above in the.. 
 How to disable scrolling temporarily? http://stackoverflow.com/questions/4770025/how-to-disable-scrolling-temporarily  e e e window.event if e.preventDefault e.preventDefault e.returnValue false function keydown e for var i keys.length i if e.keyCode.. 
 javascript to check when the browser window is close http://stackoverflow.com/questions/805463/javascript-to-check-when-the-browser-window-is-close  function e var e e window.event IE Firefox if e e.returnValue 'Are you sure ' For Safari return 'Are you sure ' https developer.mozilla.org.. 
 Catch scrolling event on overflow:hidden element http://stackoverflow.com/questions/8378243/catch-scrolling-event-on-overflowhidden-element  e if MOUSE_OVER if e.preventDefault e.preventDefault e.returnValue false return false '#myDiv' .mouseenter function MOUSE_OVER.. 
 |