【发布时间】:2015-05-20 19:32:32
【问题描述】:
这是我的 HTML :-
<iframe src="Dyanamicallygeneratedpath" id="iPrintform" name="iPrintform" class="iframeDisable" scrolling="auto" height="600" width="650" style="display:block;"></iframe>
jQuery :-
第一次尝试:-
var iFrame = $('#iPrintform');
iFrame.bind('load', function () { //binds the event
alert('iFrame Reloaded');
});
第二次尝试:-
$("#iPrintform").on("load", function () {
alert("Iframe loaded");
});
我尝试将加载事件、onready 事件绑定到 iframe,chrome 没有任何效果。
【问题讨论】:
-
尝试使用 live 代替 bind
-
Live 也不行。
标签: javascript jquery google-chrome iframe onload-event