This reply has been reported for inappropriate content.
The history stack stores the current page and previous pages that you visited. For the security reason, it's not possible to query the pages that a user have visited. However, you can use the history object to navigate back and forth without knowing the exact URL.