ccsw Posted February 26, 2020 Share Posted February 26, 2020 Hi, does anyone know if it is possible to automatically redirect from my landing page to my homepage after e.g. 2 seconds? As in this link https://www.levenbetts.com/ Thanks! Link to comment
tuanphan Posted February 27, 2020 Share Posted February 27, 2020 Add to Landing page settings > advanced > Header <script> setTimeout(function(){ window.location.href = 'https://beaverhero.com'; }, 5000); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Adrianadazz Posted July 21, 2021 Share Posted July 21, 2021 On 2/27/2020 at 2:05 AM, tuanphan said: Add to Landing page settings > advanced > Header <script> setTimeout(function(){ window.location.href = 'https://beaverhero.com'; }, 5000); </script> Hi Tuanphan, thanks for sharing the script, I wonder how I can turn it into 15 minutes instead of 2 seconds, can you help me? Thanks 🙂 Link to comment
tuanphan Posted July 22, 2021 Share Posted July 22, 2021 12 hours ago, Adrianadazz said: Hi Tuanphan, thanks for sharing the script, I wonder how I can turn it into 15 minutes instead of 2 seconds, can you help me? Thanks 🙂 Hi. 1000 = 1 second, 5000 = 5 second Do similar for 15 minutes = 300000 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Adrianadazz Posted July 22, 2021 Share Posted July 22, 2021 56 minutes ago, tuanphan said: Hi. 1000 = 1 second, 5000 = 5 second Do similar for 15 minutes = 300000 That was so simple that I almost felt embarrassed for have asked it 😅 hahaha. Thank you so much. Link to comment
JimBeacham Posted August 4, 2021 Share Posted August 4, 2021 Once this redirect code is in place, how do you make changes. It still redirects in the builder/editor. With it set to 5 seconds I don't have time to make a selection to edit anything like extending the time slightly. Link to comment
tuanphan Posted August 5, 2021 Share Posted August 5, 2021 16 hours ago, JimBeacham said: Once this redirect code is in place, how do you make changes. It still redirects in the builder/editor. With it set to 5 seconds I don't have time to make a selection to edit anything like extending the time slightly. Hi. 1000 = 1 second, 5000 = 5 second Do similar for 15 minutes = 300000 You can change it to 1000 minutes Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
JimBeacham Posted August 5, 2021 Share Posted August 5, 2021 I understand the math of the delay. I have added it into the page, and saved the page, making the code active. It is working. In fact, it is working so well, it causes the page to redirect within the SquareSpace editor. How can I get the page to stay open in the editor long enough for me to make a change. Link to comment
tuanphan Posted August 8, 2021 Share Posted August 8, 2021 On 8/6/2021 at 12:35 AM, JimBeacham said: I understand the math of the delay. I have added it into the page, and saved the page, making the code active. It is working. In fact, it is working so well, it causes the page to redirect within the SquareSpace editor. How can I get the page to stay open in the editor long enough for me to make a change. Okay. Can you paste the code what you use? We will try tweaking it Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
JimBeacham Posted August 9, 2021 Share Posted August 9, 2021 Support directed me to a page that indicates that if you view the page in "safe" mode (enter safe behind the page URL) it will disable to script so you can edit the page. Thanks for your assistance in all of this. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.