The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

Script for block landing page pop

theking9.5

New Member
affiliate
Hello everyone, I'm looking for a script to insert in the lending page to make sure that the visitor doesn't leave the page. Anyone who is handy with java script can you recommend something?

Ps:eek:bviously on mobile pages
 
I actually found this, but I have no idea where to put it on the index.html page
and how to use it, and how it works XD

Code:
<script>
    function init() {
        var count=19;var counter=setInterval(timer,1000);
        function timer(){
            count=count-1
            if(count<0){
                alert("HEADLINE")
                window.location = "#URL#";
 
                return;
            }
        }
    }
    window.onload = init;
 </script>
 
Hello everyone, I'm looking for a script to insert in the lending page to make sure that the visitor doesn't leave the page. Anyone who is handy with java script can you recommend something?

Ps:eek:bviously on mobile pages
About leave it's visitor decision not website/page owner but you can add page exit pop or notification for this when user try to close tab or window then notification show like Are you sure you want Leave..etc type..

Script you can put in your index/html file any where (in top or footer of that file). see if it's work then ok.
 
like this:
***haha just looked at the OP date mar 2 LOL
HTML:
<html>
<head>
<title>timer</title>
<style>
pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}</style>
    <script>
    function init() {
        var count=19;var counter=setInterval(timer,1000);
        function timer(){
            count=count-1
            if(count<0){
                alert("HEADLINE")
                window.location = "https://www.google.com";
 
                return;
            }
        }
    }
    window.onload = init;
 </script>
</head>
<pre>
lololol
yayaya
</pre>
</html>
 
banners
Back