How do I implement the back button for a search engine results page?

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.

You should do a search using URL parameters so that when user goes back the page loads the search results.

1 Like

May I know how that’s done? If you have any online resources, that would be fine as well. Thanks!

This topic was automatically closed after 70 days. New replies are no longer allowed.