判断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");
    }
} 

 

posted @ 2018-08-23 17:15  RivenLw  阅读(199)  评论(0编辑  收藏  举报