mark87
12-30-2004, 07:30 PM
I downloaded a script - http://www.a1javascripts.com/time_related/pageloadingtime/pageloadingtime.html
I've also put it below -
<script Language="JavaScript">
var from_time = new Date();
from_time = from_time.getTime();
function show_loading_time()
{
var to_time = new Date();
to_time = to_time.getTime();
var secs = (to_time - from_time) /1000;
}
</script>
I would like to write the text in part of the page but I can't do it...
I tried - <script>document.write(secs)</script> but it says secs is undefined.
I've also put it below -
<script Language="JavaScript">
var from_time = new Date();
from_time = from_time.getTime();
function show_loading_time()
{
var to_time = new Date();
to_time = to_time.getTime();
var secs = (to_time - from_time) /1000;
}
</script>
I would like to write the text in part of the page but I can't do it...
I tried - <script>document.write(secs)</script> but it says secs is undefined.