List Info

Thread: Time taken for a page to load




Time taken for a page to load
user name
2007-01-04 18:00:10
Hi rockmohit,

Try this :
<script>
  var tempoInicio = new Date()
  function inicializaTempo() {
    var tempoFim = new Date()
    alert(tempoFim.getTime() - tempoInicio.getTime())
  }
</script>

and put onload="inicializaTempo()" on body tag. I
think thatīs works.

Marcelo

On 1/4/07, rockmohit <rockmohityahoo.co.uk> wrote:
>
>   Hi all.
>
> Is there a function in javascript to know how much time
a page takes
> to load. Also, what are the diffrent ways of doing the
same.
>
> Thanks & regards
> rockmohit
>
> 
>


[Non-text portions of this message have been removed]



Visit http://aiaiai.com for
more groups to join 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    ht
tp://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/JavaScript_Official/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:JavaScript_Official-digest@yahoogroups.com 
    mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )