Skip to content

Instantly share code, notes, and snippets.

@mrbusche
Created February 14, 2014 19:16
Show Gist options
  • Save mrbusche/9007165 to your computer and use it in GitHub Desktop.
Save mrbusche/9007165 to your computer and use it in GitHub Desktop.
window.onbeforeunload = function() {
return 'You are exiting before completing the payment process. Failure to secure a down payment at submittal could impact the account creation timing.';
}
$(function($) {
$('a[href^="javascript:"],input').click(
function() {
window.onbeforeunload = null;
}
)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment