How do I return to the same place on the page after clicking the back button?

1

I am developing a portal, in it there are several news, when I click on one of them I am sent to a new page that treats this subject in full, my doubt is the following, I would like that after I click the back button I would return to the previous page at the same point where I was reading, that is, at the same point in the news where I clicked, can anyone help me solve this navigation question? Thank you.

    
asked by anonymous 08.09.2016 / 15:40

1 answer

2

You can do with history.go :

javascript:history.go(-1);
    
08.09.2016 / 15:45