Page 1 of 1

(JavaScript) Counter with redirect.

Posted: Sat Mar 11, 2023 2:14 pm
by samuel_anttunes
JavaScript to redirect the person after a certain time. It counts in descending order until it reaches 10. Great for redirect warnings, link protector creation, others...

Code: Select all

Please wait for the page to be loading...
<script src="http://www.elitegta.com.br/sites/download/downModsModalNome.js"></script>



    <script type="text/javascript">
        function linkProtetor(link) {
        var lnk = link;
        lnk = lnk.substr(lnk.search("url=")+4);
        return lnk;
        }

        var linkpro = window.parent.document.location.href;
        linkpro = linkProtetor(linkpro);

<!--
var numero = 10;
function chamar(){if(numero>0){document.getElementById('timers').innerHTML = --numero;}}
setInterval("chamar();", 1000);
setTimeout("location.href =  '/page_to_be_redirected.php'; ",10000);
//-->
</script>
<div align="center" style="font-family: tahoma; font-size: 16px;">You will be redirected at: <br><div style="font-family: tahoma; font-size: 56px;" id="timers">10</div>
</div>
Modify the page to be redirected !

https://godcode.wapka.xyz/
https://godcode.wapka.xyz/
https://godcode.wapka.xyz/