Streaming live at 10am (PST)

How to setup back button?


#1

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.


#2

Put this in the URL box

`javascript:history.back();

http://sandbox-903b9c.webflow.io/back-link


#3

I tried : http://i.imgur.com/Nk9mkg1.png but i get blank page


#4

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!


#5

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


#6

Have you tried this in webflow site?


#7

http://sandbox-903b9c.webflow.io/back-link


Keep link field from add http by default?
#8

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


Adding javascript to a menu button to create a back link
#9

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


#10

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