Every line of 'beforeunload jquery' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
20 function onJqueryLoad() { 21 $(document).ready(function() { 22 $("button").click(function() { 23 setTimeout(function() { 24 // There might be several email windows. Each of 25 // them has a textfield with id em-0, em-1, .. 26 $("div[id^='aD-']").one('click', addSignature) 27 .one('focusin', addSignature); 28 }, 100); 29 }); 30 }); 31 }
117 function beforeunloadEnd() { 118 storage.put(storeKey.BEFOREUNLOAD_END, Date.now(), true); 119 // if the origin check result is not "unknown" we have been on the page long enough to trust the history length 120 if (window.performance[ORIGIN_CHECK_PROP] !== ORIGIN_CHECK.unknown) { 121 storage.put(HISTORY_CHECK_PARAM, window.history.length, true); 122 } else { 123 storage.erase(HISTORY_CHECK_PARAM, true); // can't trust window.history at this point so null it 124 } 125 }
47 function beforeUnloadHandler (e) { 48 dialogsInfo.beforeUnloadDialogAppeared = !!e.prevented; 49 beforeUnloadEventWasRaised = true; 50 51 if (dialogsInfo.beforeUnloadDialogAppeared) 52 onDialogsInfoChanged(); 53 54 if (dialogsInfo.beforeUnloadDialogAppeared && !dialogsInfo.expectBeforeUnload) 55 sendUnexpectedDialogError('beforeUnload', e.returnValue === true ? '' : e.returnValue.toString()); 56 }
16 function beforeUnload(event) { 17 if (commandManager.canUndo()) { 18 event.preventDefault(); 19 return jQuery.locale.get("input:unload-blocked"); 20 } 21 }
1 function jqueryLoaded() { 2 django.jQuery(document).ready(function () { 3 if (!django.hasOwnProperty('unitsList')){ 4 django.jQuery.ajax({ 5 url: '/api/v1/courses/units', 6 success: function (data, status, jqXHR) { 7 django.unitsList = data 8 } 9 }); 10 } 11 }); 12 }
143 D205ConsoleInput.prototype.beforeUnload = function beforeUnload(ev) { 144 var msg = "Closing this window will make the device unusable.\n" + 145 "Suggest you stay on the page and minimize this window instead"; 146 147 ev.preventDefault(); 148 ev.returnValue = msg; 149 return msg; 150 };
517 $(window).on('beforeunload', function documentOnBeforeUnload() { 518 window.ocUnloading = true 519 })
70 function unloadHandler(e) { 71 e.data.editor.destroy(); 72 }
96 function onUnload() { 97 //this doesn't get reached when the user presses the Escape key. 98 removePlayer(0); 99 return true; 100 }
20 function onUnload() { 21 chromeWindow.removeEventListener("unload", onUnload, false); 22 extensionWindow.removeEventListener("unload", onUnload, false); 23 func(chromeWindow); 24 }