history.back()

non so se tiene i dati, prova