Introduction:
This guide illustrates how to add a delay before redirecting users to an external page in LeadsHook. By implementing the provided script, you can improve user experience and provide necessary notifications before redirection.
Step-by-Step Instructions:
Add the Following Code as shown below
- Implement the following code to add a delay and a ‘Thank You’ message before redirecting to an external page:
<h3 style="text-align: center;"><span style="color:#000000;">Thank you for signing-up for our offer, you are qualified kindly wait for a few seconds....</span></h3>
<script>
var timer = setTimeout(function() {
window.top.location='https://disney.com'
}, 2500);
</script>

Note: The numeric value (2500) in the script determines the delay before redirection, measured in milliseconds. In this case, the delay is 2.5 seconds (2500 milliseconds). Adjust this value as necessary depending on your requirements.
Conclusion:
Adding a delay before redirecting to an external page offers a smoother transition for your users, especially when they are being redirected away from the current page. Always adjust the delay duration to suit your specific needs.
FAQs:
- Can I insert this code in any node?
- Yes, this code can be placed in any node where redirection is intended.