Streaming live at 10am (PST)

Problem linking to section of another page after page load delay

Hey everyone!

I am working toward a solution for linking back to a section of the home page from sub-pages following a page delay.

`javascript:delay(’/#rodman-study’)

Am I getting something wrong?


Here is my site Read-Only: **

https://preview.webflow.com/preview/usable-2?utm_medium=preview_link&utm_source=designer&utm_content=usable-2&preview=a340efbee7e52dd669e1091305231de3&pageId=6083190ced6a3f6010b1cff3&mode=preview

Hi Brett,

You need to use the page url in your javascript. For example:
`javascript:delay(‘https://javascript-delay.webflow.io#safe-section’)

And you need to add a code to the footer code in your custom code settings. You can find that code in the share link below.

Here is a live example:
https://javascript-delay.webflow.io/ I put a delay on the “About” button in the navigation that links to the safety section on the home page.

And the read-only link for it:
https://preview.webflow.com/preview/javascript-delay?utm_medium=preview_link&utm_source=dashboard&utm_content=javascript-delay&preview=85f858f2d0db89d5b5af8dc8a132ad1e&mode=preview

You can adjust the “2000” in the code to make the delay shorter or longer.

You will only be able to see the delay working on the live site, not in the designer.

Teresa

I thought that might be it. I will need to wait until I have the site transferred to it’s domaine.