How can I add a back button in Webflow?

Hello! I am trying to make a button that sends the user to the previous page. I have implemented this before in custom coded websites, but do not know how to do it in Webflow. Thank you very much

hi @Park_Dalton Webflow doesn’t offer this basic functionality, just use your custom code and use it in site, page or embed element.

you may find some answers in this forum via search input field

or use Finsweet solution

Hi Park,

Paste `javascript:history.back(-1); in the URL section of the Link block

Publish the site and test :slight_smile:


If I can I will just add clarification, this code is related to history of browser session and not to prev / next . What this mean that if you will land on specific page of your website by clicking link let say from google search, than clicking back button in your article will redirect you back to google search and not to previous article on your website.

Todays code use window instead javascript


1 Like


The Finsweet solution you mentioned works perfectly for switching between articles. Still mentioned the JS script if that’s what he was looking for :slight_smile:

Wow, so what’s the difference between using window and javascript to go back?

Learning a lot from your Stan :blue_heart:

1 Like

javascript was used for older browsers compatibility like IE6 and for other was used window. While IE is gone there is no reason to use it as window is supported with all browsers. At least this is how I remember it. :wink:

1 Like

Is there a way to keep a filter that was active on the previous page, active when navigating back from a deeper/template page

1 Like

Hello, did you find a solution?

1 Like

This was incredibly helpful! Thank you!