(JavaScript) Counter with redirect.

Share your ideas & teach other
Post Reply
samuel_anttunes
Posts: 29
Joined: Thu Mar 09, 2023 12:25 pm

(JavaScript) Counter with redirect.

Post 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/
Post Reply