exit button and htmlformatter

first try to link the exit button : a problem occured on the confirm dialog which allways returns false