Browser warning when closing tab when editing/filling out a form! - Feature Requests - Gravity Forms
var userStartedForm;
jQuery(document).on('focus', '.gform_wrapper input', function(){
userStartedForm = true;
});
jQuery(window).on('beforeunload', function(){
if(userStartedForm){ return ''; }
});