want to redirect to next page on particular section id without showing #id in the url

Can anyone help me please using javascript on the following problem. I want to redirect to next page on particular section id without showing "#id" in the url using javascript or jquery.

Answers 1

  • Well I suppose you could store the id using HTML5 local storage then when you load the next page you can remove it and scroll the user there.

    I don't recommend that you do this. It's good that the URL has the id so the user can send the URL linking directly to that section to other people.


Related Articles