add the possibility to run a jacascript callback on confirm dialog instead of submit the form or change the location of the page (for links)