Navigation: Javascript API > Events for user dialogs
OnRequestConfirm
Scripts and functions defined here are executed when a request dialog is confirmed.
If the script returns the script return the value false, the assignment is not executed.