James Bachini

Alert box on click through to offer

The following example will allow you to create an alert box when the user clicks through from your landing page to the offer page. This can be useful to remind users of your offers value proposition, sign-up requirements (double-opt in?) or just to increase conversion rate on the offer end.

A working demo is available here: preclickwarning.htm

<html>
<script>
function offerAlert() {
    alert(“$50 credit has been applied to your account.\n\nPlease enter your name and email on the next page before you start playing”);
    window.location = ‘http://888.com’;
}
</script>

<a href=”javascript:void(0)” onclick=”offerAlert();”>Continue</a>
</html>

So everything between the script tags is the javascript to make the pop up work. The 888.com link is the out link which should be replaced with your affiliate link. The <a href part is a standard link which can be used with text, images, buttons etc. as normal. You can fire offerAlert(); from anywhere and it will pop up and then redirect on click.

alertbox


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