Javascripts > Javascript Redirects > Delay Page Loading With Countdown
Script Title: Delay Page Loading With Countdown
Description: Delay the loading of the page with a countdown.
Example: No example available for this script.
Copy the following code between the <BODY></BODY> tags of your html page.<form name="redirect"> <center> <font face="Arial"><b>You will be redirected to the script in<br><br> <form> <input type="text" size="3" name="redirect2"> </form> seconds</b></font> </center> <script> <!-- /* Count down then redirect script By Website Abstraction (http://wsabstract.com) Over 400+ free scripts here! */ //change below target URL to your own var targetURL="http://www.java-scripts.net" //change the second to start counting down from var countdownfrom=10 var currentsecond=document.redirect.redirect2.value=countdownfrom+1 function countredirect(){ if (currentsecond!=1){ currentsecond-=1 document.redirect.redirect2.value=currentsecond } else{ window.location=targetURL return } setTimeout("countredirect()",1000) } countredirect() //--> </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email