In this example, we will try to redirect to a WhatsApp link, after a 5 seconds delay when a page is done loading.
Go to Custom Codes > Custom JS(Body) and paste the following:
<script> setTimeout(() => { window.location.replace("https://wa.me/15551234567"); }, 5000); </script>
5OOO: is the delay in milliseconds.
https://wa.me/15551234567: is the redirect URL.