I am creating a FAQ page with code and a database (what I needed was more than the FAQ app could do). So far, I am making good progress getting it set up. However, I would like to create a “Back” button that would return to the last viewed “list” of questions. The page does not change (I did find and read the post on creating a back button for pages), so I don’t think the same code on that post would work for this. The list of questions is contained within their own container, and there are 5 containers for 5 categories of questions. So, I have a button ready to go to return the viewer to the last set of questions they viewed but can’t figure out how to return to the last viewed when it will be different for every viewer.
Have you tried the referrer? wix-window-frontend - Velo API Reference - Wix.com
Does that work if you are staying on the same page?
You can store which section the user has just been to using session storage . When the user clicks the back button you can check to storage to see which was the last section the user visited and use one of the scrollTo functions to scroll them back to that part of the page.
Thank you, Sam!