Hola
only_skating
Prueba este código, puede que sea lo que necesitas:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cuenta regresiva con enlace</title>
<style type="text/css">
.centrado {
width: 240px;
margin: 0 auto;
text-align: center;
border: 1px solid #444;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
padding: 6px;
background-color: #ffc;
}
</style>
</head>
<body>
<form name="redirect" class="centrado">
<span>Tiempo restante para finalizar</span>
<br />
<input type="text" size="3" name="destino" />
<br />
segundos
<script type="text/javascript">
<!--
var targetURL="destino.html" //página que se abrirá al finalizar el conteo
var countdownfrom=10 //tiempo en segundos de la cuenta atrás
var currentsecond=document.redirect.destino.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.destino.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}
countredirect()
//-->
</script>
</form>
</body>
</html>
Bye