如何在html脚本中判断得知整个html页面已经下载完毕了!

谢谢!
---------------------------------------------------------------

要使用onreadystatechange事件

1<script>   
2document.onreadystatechange=function(){   
3if(document.readyState=="complete"){   
4alert("加载完成!");   
5}   
6}   
7  
8</script>
Published At
Categories with Web编程
comments powered by Disqus