当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM complete属性
The complete property returns whether or not the browser has finished loading the image.
complete属性可以返回图片是否已经加载完毕
If the image is finished loaded it returns true, otherwise it returns false.
如果加载完毕就返回true,否则就是false
imageObject.complete |
The following example checks if the image is finished loaded on body onload:
下面举例中我们将检查图片在body onload时是否加载完毕:
<html> <img id="compman" src="compman.gif" alt="Computerman" </body> |
Check if the image is finished loaded
检查图片是否加载完毕