Html page redirect Tag

html-b44d32d6

In this Post I just put HTML page redirect code for those who want to redirect their page to new URL.

Code:

<!– Modify this according to your requirement –>
<h1 align=”center”>
<font color=”#FF0000″>Redirecting to clickthesite.com after <span id=”countdown”>10</span> seconds
</font>
</h1>
<!– JavaScript part –>
<script type=”text/javascript”>

// Total seconds to wait
var seconds = 10;

function countdown() {
seconds = seconds – 1;
if (seconds < 0) {
// Change your redirection link here
window.location = “http://www.clickthesite.com”;
} else {
// Update remaining seconds
document.getElementById(“countdown”).innerHTML = seconds;
// Count down using javascript
window.setTimeout(“countdown()”, 1000);
}
}

// Run countdown function
countdown();

</script>

    One thought on “Html page redirect Tag

    Leave a Reply

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