Redirect the page by using the timer

Posted by Saratvaddilli under JavaScript category on | Points: 40 | Views : 2153
<script language="JavaScript" type="text/javascript">
var count =6
var redirect=""

function countDown(){
if (count <=0){
window.location = redirect;
document.getElementById("timer").innerHTML = "This page will redirect in "+count+" seconds."
setTimeout("countDown()", 1000)

Our webpage has moved. Please update your bookmarks for the new site.

<span id="timer">

Comments or Responses

Login to post response