“mobile”/ Voluum
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

Script for block landing page pop

Discussion in 'Programming and Scripts' started by theking9.5, Mar 2, 2018.

  1. theking9.5

    theking9.5 Affiliate affiliate

    4
    1
    3
    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
     
    tyoussef likes this.
  2. CPA Evolution
  3. theking9.5

    theking9.5 Affiliate affiliate

    4
    1
    3
    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>
     
  4. Paid Affs

    Paid Affs Affiliate Manager Affiliate Manager affiliate

    129
    47
    28
    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.
     
  5. Graybeard

    Graybeard Well-Known Member affiliate

    5,364
    2,631
    113
    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