Thu Sep 15, 2011 8:09 pm
<html>
<head>
<title>Redirect after time</title>
<script language="JavaScript" type="text/javascript">
var seconds =5;
var url="http://www.codemiles.com";
function redirect(){
if (seconds <=0){
// redirect to new url after counter down.
window.location = url;
}else{
seconds--;
document.getElementById("pageInfo").innerHTML = "redirect after "+seconds+" seconds."
setTimeout("redirect()", 1000)
}
}
</script>
</head>
<div id="pageInfo">
<script>
redirect();
</script>
</div>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.