Sure you want to leave? modal jscript #506

Something like this was what you had in mind?

Shows the alert only if the user changed something on publish new form.