Streaming live at 10am (PST)

How to setup back button?


How do we setup a back button to return visitors to the previous section? I have a link button located somewhere in the middle of the website, and when visitors clicked the button they are redirected to another page. We want them to return to the middle section of the page when they hit back button from the other page.

PS: I tried putting an "id" to the section but it slides down from top to middle, we want them to instantly go back without the page slide.

Page transitions. Javascript delay + history.back?

Put this in the URL box



I tried : but i get blank page


You must type it out exactly the same, character for character. If you cannot do it, then copy and paste the above. No http:// in front!


No, webflow automatically add http on the url box even though I add the code "javascript:history.back();"


Have you tried this in webflow site?


Keep link field from add http by default?

Look at my code carefully again. You are missing the first character.

Adding javascript to a menu button to create a back link

Ok I see, It works now I should not click the field when pasting so that it would not add http. Thanks!

closed #10

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.