1
我使用jQuery colorbox并将HTML加载到iframe中。一切正常。虽然 的iframe负荷,我想显示沿线的消息“通过页面的立场是加载”jQuery colorbox和onOpen回调事件
我尝试使用回调接口....如果我用发送警报的传统的例子 之前到加载/打开事件,它工作正常。如果我尝试使用document.write来显示消息,我看到该消息,但iframe无法加载。
//Examples of how to assign the ColorBox event to elements
$(".iframe").colorbox({
iframe:true, width:"80%", height:"80%",
onOpen:function(){document.write("fff"); }
});
我在做什么错?