|
蓝森林 http://www.lslnet.com 2006年8月25日 8:28
JS能得到网页下载时间吗?
谢谢 |
我也想知道。 比如取得网页的下载数据量也可以。 |
[html]
<script>var startTime=(new Date()).getTime();</script>
<body onload="alert('页面下载共计耗时 '+((new Date()).getTime()-startTime)+'毫秒');">
网页内容....
<img src="http://bbs.blueidea.com/images/blue/newtopic.gif" />
<iframe src="http://freehost08.websamba.com/hutia/BI_Tree/InfoCollection.htm" style="display:none;"></iframe>[/html] |
好主意,将页面开始时间减去当前时间! |
|