Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/06/2003, 10:07
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años, 1 mes
Puntos: 772
Hola, ferny.

Prueba este código a ver si te sirve. Te aparece un alert con el tiempo que ha tardado en cargar la página en milisegundos (salvo error por mi parte)
Código PHP:
<html>
<
head>
<
title>Untitled Document</title>
<
script>
var 
inicio=new Date();
inicio=inicio.getTime();
function 
ini() {
    
fin=new Date();
    
fin=fin.getTime();
    
tiempo=fin-inicio;
    
alert(tiempo);
}
</script>
</head>

<body onLoad="ini()">
</body>
</html> 
Saludos,