Hey everyone, We use to redirect people when they visit us. How to redirect by showing a countdown? I have seen in many website, they redirect by showing a countdown. Is this possible to do only with HTML? Thanks
It's not. You will need to use JavaScript to accomplish this. But there's no downside to this.... you may still use the meta tag for those without JavaScript active in their browsers. http://javascript.internet.com/navigation/countdown-redirect.html (quick example)
Is this any good for you. <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> <!-- //change below target URL to your own var targetURL="http://ebay.co.uk" //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>
<html><head> <META HTTP-EQUIV=Refresh CONTENT="5; URL=http://www.123.com"> </head><body> </body></html> [Put 5 or 4 or 3 etc, any number you want.]
hi...I've a sound knowledge about web desiging, however as much as i know Redirect is a module that show a countdown before redirect your user to a specific page.