Skip to content

Instantly share code, notes, and snippets.

@mrbusche
Created February 14, 2014 19:16
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