Tema: Reload page
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/04/2010, 15:17
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Reload page

Necobus, esto hace lo que quieres:


<!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=iso-8859-1" />
<title>Recargar cada minuto</title>
<script type="text/javascript">
function iniciarTimer()
{
var tiempo=new Date();
var s=tiempo.getSeconds();
if (s==0){
window.location.href=window.location.href;
}
t=setTimeout('iniciarTimer()',500);
}
</script>
</head>

<body onload="iniciarTimer()">
<h1>Recargar cada minuto</h1>
</body>
</html>


pero me podrías decir cual es el objeto de esto?

Saludos