LATEST >>

Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » HTML-CSS-PHP-JavaScript / JavaScript Codes » Automatically Redirect To Another Page With Countdown Timer In JavaScript

Automatically Redirect To Another Page With Countdown Timer In JavaScript

Automatically-Redirect-To-Another-Page-With-Countdown-Timer-In-JavaScript
You may have seen this feature used by sites with full page ads, or to redirect visitors to the site’s new domain name. You can add also a timer to the script that will allow the page to redirect and the visitors will not need to click a link or type in the new URL.

Occasionally, you may wish to have a redirect page that pauses for a few seconds before sending the visitor off to the destination. For example, there may be important text on the redirect page you wish the visitor to get a chance to read, or a banner ad to see.before proceeding. This redirect script understands that, and pauses for any given seconds before navigating to the target page!

There are many snippet available online or on many others Blog and website but every one is not able to optimize your blog or website so your need some optimized code snippet. So now checkout out code snippet for your blog and website that will give you all features for your desired code. Now grab the ready to use code and paste it where you want.

Table of Contents

Features:

1.) Pure JavaScript Added.
2.) No JQuery File.
3.) Simple HTML-CSS Added.
4.) Simple And Fast Loading Code.
5.) Can Work With Any Browser.

How To Add In A WebPage?

1.) Just Go To Your “Web Page File”.
2.) Now “Copy” The Below Codes And “Paste” It To There Positions.
3.) “Save” It, Now You Are Done.

HTML:

<center>
<font face="Arial"><b>You will be redirected to the script in<br><br>
<form>
<input type="text" size="3" id="timer" name="redirect2" value="5">
</form>
seconds</b></font>
</center>

JavaScript:

<script>
<!--
var targetURL="http://www.EXEIDEAS.com"
var currentsecond=5;
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.getElementById('timer').value=currentsecond;
}
else{
window.location=targetURL;
return
}
setTimeout("countredirect()",1000)
}
countredirect();
//-->
</script>

Customization:

1.) Edit Your HTML-CSS-JAVASCRIPT As Per Your Requirements. Rest Is Ok For General Us. If You Are Pro, Then You Can Do Any Thing.

Last Words:

That’s all we have. If you have any problem with this code in your template then feel free to contact us with full explanation of your problem. We will reply you as time allow to us. Don’t forget to share this with your friends so they can also take benefit from it and leave.

You Like It, Please Share This Recipe With Your Friends Using...

2 Responses to “Automatically Redirect To Another Page With Countdown Timer In JavaScript”

  1. ThePakVoice says:

    Outstanding post. As a blogger, I used to believe that it is really difficult to be authentic but, your ingenuity in creating this article blew my mind. Thank you so much.

    • EXEIdeas says:

      Welcome here and thanks for reading our article and sharing your view. This will be very helpful to us to let us motivate to provide you more awesome and valuable content Welcome here and thanks for reading our article and sharing your view. This will be very helpful to us to let us motivate to provide you more awesome and valuable content from different mind. Thanks for reading this articlefrom different mind. Thanks for reading this article

Leave a Reply

Your email address will not be published. Required fields are marked *