Navigation: Javascript API > Events for user dialogs
OnAbortConfirm
Scripts and functions defined here are executed when a step is canceled.
If the script returns the value false, the step will not be canceled.