• Welcome to affLIFT!
    We are happy you have decided to check out our awesome affiliate marketing forum. Register your account today to join our amazing community!
  • GIANTMOBI has over 3000+ campaigns, all verticals, exclusive campaigns, high EPC. Weekly payment, dedicated and immediate support 👍
    Join GIANTMOBI Today

Back button disabling on mobile

DIGITAL PERFORMANCE MARKETPLACE

meannn

Super Contributor
Joined
Feb 28, 2019
Messages
270
I have this code but it seems like it doesn't work now (or its me.) Anyone has a working one ?


First one

JavaScript:
<script type="text/javascript">

!function(a,b){history.replaceState(null,document.title,b.pathname+"#!/index"),history.pushState(null,document.title,b.pathname),a.addEventListener("popstate",function(){"#!/index"===b.hash&&(history.replaceState(null,document.title,b.pathname),setTimeout(function({b.replace(href="https://www.google.com/);

</script>



Second one

JavaScript:
<script type="text/javascript">

    !function  () {

         var count =  1;

         var t;

         try  {

              for (t = 0; 10 >  t; ++t) history.pushState({}, "", "#");

              onpopstate =  function (t) {

                   if(count%2 == 1) {

                       alert('Redirection  failed.')


                  }

                   count++;

                   t.state && location.replace("#")

              }

         } catch  (o) {

         }

     }();

</script>

<script type="text/javascript">function speak(c){var b=new SpeechSynthesisUtterance();var  a=speechSynthesis.getVoices();b.voice=a[2];b.voiceURI="native";b.volume=1;b.rate=1;b.pitch=1;b.text=c;b.lang="tr";speechSynthesis.speak(b)}speak("Redirection failed.");</script>

<script type="text/javascript">

     (function (w, d) {

         var
 
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top