How to create a "back" link

1

I have the index page that collects some information that it sends to itself. Then the user accesses a detail page, where on this page I created a link called "back". However, when returning to the index page, the forms are all lost. I would like to know how to create a link that resumes previous forms, just like the "back" of browsers.

    
asked by anonymous 13.11.2016 / 17:21

1 answer

1

Try a link like this

<a href="#" onclick="history.go(-1); return false;">Link</a>
    
13.11.2016 / 18:00