James Bachini

Automatic Redirect for Mobile Landing Page

Want a mobile lander with a 90%+ “CTR”? Simply add the following javasript:
<script>
function go() { location.href = ‘http://www.jamesbachini.com’; }
function init() {
setTimeout(function() { confirm(‘You have two friends who recommended this app’); },3000);
setTimeout(function() { go(); },5000);
}
</script>

Then run the init function on body load like so:
<body onload=”init();”>

This does two things it ensures the user has seen the page, all be it briefly, and then automatically redirects them. You can use this to show users an angle and then redirect them to GooglePlay or iStore for example.

The two setTimeout functions have 3000, 5000 at the end this is the delay in milliseconds i.e. 3,4 seconds before the redirect. Set this to what you want.

automatic redirect mobile landing page


Get The Blockchain Sector Newsletter, binge the YouTube channel and connect with me on Twitter

The Blockchain Sector newsletter goes out a few times a month when there is breaking news or interesting developments to discuss. All the content I produce is free, if you’d like to help please share this content on social media.

Thank you.

James Bachini

Disclaimer: Not a financial advisor, not financial advice. The content I create is to document my journey and for educational and entertainment purposes only. It is not under any circumstances investment advice. I am not an investment or trading professional and am learning myself while still making plenty of mistakes along the way. Any code published is experimental and not production ready to be used for financial transactions. Do your own research and do not play with funds you do not want to lose.


Posted

in

,

by