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

Asked

Viewed 1,150 times

1

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

1 answer

2

  • I think what he wants is to go back to the same place the scroll was.

  • @Marconi, tested here in Chrome and history.go(-1) is returning to the same location in Scroll. It’s returning differently in some other browser?

  • Thanks Allan, I’ll try.

  • The answer came true?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.