监听frame加载完毕
兼容Firefox/Opera/Safari/IE的处理方式,原文链接
var oFrm = document.getElementById('ifrm'); oFrm.onload = oFrm.onreadystatechange = function() { if (this.readyState && this.readyState != 'complete') return; else { onComplete(); } }
兼容Firefox/Opera/Safari/IE的处理方式,原文链接
var oFrm = document.getElementById('ifrm'); oFrm.onload = oFrm.onreadystatechange = function() { if (this.readyState && this.readyState != 'complete') return; else { onComplete(); } }