I am using this library to create my page navigation. However, since this sort of navigation is new to me, because all pages are in a single html file instead of different files, I'm unsure how to save that kind of history.
Using <a> name
and href
does not work in this situation, because it doesn't store the anchor for the page transition, rather storing the page index as data
.
I'm looking for a way to: A) Keep the data number (open page) active when I hit refresh (because out of the box it always goes to the first page) B) Keep a navigation history, so you can hit the back button after navigating between pages
Any suggestions are helpful, as well as maybe some basic examples to work from. Thanks!