Metti un history.back(); dopo l'alert!