I have a search results page, where once a listing is clicked on, it takes users to the listing details page that loads in the same window. However, when the user clicks on the back button (for example, if the listing details are not satisfactory) then it reloads the previous page (which is the search results page), but it only shows the empty search box rather than populating the page with the results that were there previously.
How do I implement the back button where it loads the previously visible search results? I can open the listing details in a new window, but it just wouldn’t be very elegant.