判断Iframe是否加载完毕

Posted rivenlw

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了判断Iframe是否加载完毕相关的知识,希望对你有一定的参考价值。

var oFrm = document.getElementById(‘Iframe4‘);
oFrm.onload = oFrm.onreadystatechange = function () {
    if (this.readyState && this.readyState != ‘complete‘) {
        //alert("加载中。。。");
    }
    else {
        var $listSearch = $(‘#Iframe4‘).contents().find(‘.listSearch‘);
        $listSearch.css("top", "30px");
    }
} 

 

以上是关于判断Iframe是否加载完毕的主要内容,如果未能解决你的问题,请参考以下文章