firefox下如何判断一个对象加载完成,如图片或IFRAME
firefox下如何判断一个对象加载完成,如图片或IFRAME.
主要是IFRAME,在FIREFOX如何判断?
[解决办法]
<iframe src= "http://www.163.com " id= "ice "> </iframe>
<script type= "text/javascript ">
document.getElementById( "ice ").onreadystatechange = function(){
if(this.readyState == 'complete ')
alert( 'complete ');
}
</script>
[解决办法]
jf
[解决办法]
IE onload
FireFox onreadystatechange
[解决办法]
请注意你的iframe里指向的页面是否完全加载完毕(包括图片等等外链文件加载也计算在内的)
[解决办法]
这是行不通滴, iframe 有 onload 属性, 但是没有 onload 事件,
onreadystatechange 也是白费心, 在 当前窗口得到 iframe 时, 他的 readstate 执行完了.