查看完整版本: 怎么知道浏览器对一个页面的下载是否已经完成?

thyx 2006-7-17 15:32

怎么知道浏览器对一个页面的下载是否已经完成?

写一个自动化测试工具,需要测试各种浏览器,在下载完成后实现抓屏,如何知道已经下载完成?

jeloss 2006-8-15 17:18

帮你顶顶,我也想知道

cc_lion 2006-10-11 15:21

浏览器左下角状态栏显示完成就完成了

vigo 2006-10-15 01:15

document有一个状态表示页面是否加载完毕readyState
Retrieves a value that indicates the current state of the object.

Syntax

HTML N/A
Scripting [ sState = ] object.readyState

Possible Values

sState String that receives one of the following values.uninitialized Object is not initialized with data.
loading Object is loading its data.
loaded Object has finished loading its data.
interactive User can interact with the object even though it is not fully loaded.
complete Object is completely initialized.

可以通过判断这个值来确定是否加载完毕。

wtucel 2006-10-18 18:01

LS说的是什么工具?
页: [1]
查看完整版本: 怎么知道浏览器对一个页面的下载是否已经完成?